def METHOD_NAME(password):
    user = accounts.get_current_user()
    if user is None:
        return False
    try:
        username = user.key.split('/')[-1]
        web.ctx.site.login(username, password)
    except ClientException:
        return False
    return True