예제 #1
0
def removeuser(authid):
    try:
        return Auths.delete_account(authid)
    except Exception as e:
        raise InvalidUsage(str(e), status_code=500)
예제 #2
0
def register():
    try:
        return Auths.register()
    except Exception as e:
        raise InvalidUsage(str(e), status_code=500)
예제 #3
0
def confirm(token):
    try:
        return Auths.confirms(token)
    except Exception as e:
        raise InvalidUsage(str(e), status_code=500)
예제 #4
0
def login():
    try:
        return Auths.login()
    except Exception as e:
        raise InvalidUsage(str(e), status_code=500)