Fakultas Ilmu Komputer UI

Commit 815632e9 authored by zakiraihan's avatar zakiraihan
Browse files

Make the app could save to db

parent 635cad5c
......@@ -101,8 +101,8 @@ def createSSOAccount():
print(request.form)
username = request.form['username']
phoneNumber = request.form['phoneNumber']
# createdSSOAccountStatus = create_user_sso_account(username, phoneNumber)
createdSSOAccountStatus = "success"
createdSSOAccountStatus = create_user_sso_account(username, phoneNumber)
# createdSSOAccountStatus = "success"
if (createdSSOAccountStatus == "success"):
return render_template('successToLoginSSO.html', username=username)
elif (createdSSOAccountStatus == "failed"):
......
......@@ -58,6 +58,7 @@ def user_logout_sso(bot, chat_id):
URL = sso_url + "/logout?url=" + app_auth_url
response = "Please logout through this link:\n" + URL
bot.sendMessage(chat_id=chat_id, text=response)
# def user_login_sso(bot, chat_id):
# base_url = os.environ.get('URL')
# sso_url = os.environ.get('SSO_UI_URL')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment