Fakultas Ilmu Komputer UI

Commit 595168d8 authored by zakiraihan's avatar zakiraihan
Browse files

removing ngrok server number on code

parent ab9b8b8e
......@@ -48,7 +48,7 @@ def user_deactive_notif(bot, chat_id):
def user_login_sso(bot, chat_id):
base_url = os.environ.get('URL')
sso_url = os.environ.get('SSO_UI_URL')
app_auth_url = "https://6e71a1d8" + base_url + '/auth/'
app_auth_url = "https://" + base_url + '/auth/'
URL = sso_url + "/login?service=" + app_auth_url
response = "Please login through this link:\n" + URL
bot.sendMessage(chat_id=chat_id, text=response)
......@@ -56,7 +56,7 @@ def user_login_sso(bot, chat_id):
def user_logout_sso(bot, chat_id):
base_url = os.environ.get('URL')
sso_url = os.environ.get('SSO_UI_URL')
app_auth_url = "https://6e71a1d8" + base_url + '/auth/'
app_auth_url = "https://" + base_url + '/auth/'
URL = sso_url + "/logout?url=" + app_auth_url
response = "Please logout through this link:\n" + URL
bot.sendMessage(chat_id=chat_id, text=response)
Supports Markdown
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