Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZAKI RAIHAN
1606878505_ossd_telegram_notif_bot
Commits
595168d8
Commit
595168d8
authored
Sep 27, 2019
by
zakiraihan
Browse files
removing ngrok server number on code
parent
ab9b8b8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
telebot/mastermind.py
View file @
595168d8
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment