Example #1
0
def userdel(login=None):
    """ Remove a user"""

    if login is None:
        login = prompt("Login: "******"User has been deleted"
    except User.DoesNotExist:
        print "User not found"
    except Exception, e:
        print "Unexpected error: %s" % e
Example #2
0
def renew(login=None, count=5):
    """ Renew a emergency codes"""

    if login is None:
        login = prompt("Login: "******"User not found"
    except Exception, e:
        print "Unexpected error: %s" % e