new workspace members are provisional until they log in for the first time

This commit is contained in:
dandds
2018-10-25 11:25:58 -04:00
parent 8f146b2fee
commit 49f5edfe29
7 changed files with 76 additions and 1 deletions

View File

@@ -101,6 +101,10 @@ def login_redirect():
auth_context = _make_authentication_context()
auth_context.authenticate()
user = auth_context.get_user()
if user.provisional:
Users.finalize(user)
session["user_id"] = user.id
return redirect(redirect_after_login_url())