Skip to content

Commit

Permalink
chore: Update URLs and redirect for Telegram login
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jan 12, 2024
1 parent ec467e5 commit ef268fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/sspanel/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# 注册/登录
path("register/", views.RegisterView.as_view(), name="register"),
path("login/", views.UserLogInView.as_view(), name="login"),
path("login/telegram/", views.TelegramLoginView.as_view(), name="telegram_login"),
path(
"login-with-telegram/", views.TelegramLoginView.as_view(), name="telegram_login"
),
path("logout/", views.UserLogOutView.as_view(), name="logout"),
path(
"user_traffic_log/", views.UserTrafficLogView.as_view(), name="user_traffic_log"
Expand Down
1 change: 0 additions & 1 deletion apps/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
path("prom/", include("django_prometheus.urls")),
)


# append openapi urls
urlpatterns.append(
path("openapi/v1/", include(openapi_router.urls)),
Expand Down
2 changes: 1 addition & 1 deletion configs/default/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@
# TG 相关配置
TELEGRAM_BOT_NAME = os.getenv("TELEGRAM_BOT_NAME")
TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
TELEGRAM_LOGIN_REDIRECT_URL = f"{SITE_HOST}/login/telegram/"
TELEGRAM_LOGIN_REDIRECT_URL = f"{SITE_HOST}/login-with-telegram/"

0 comments on commit ef268fc

Please sign in to comment.