Skip to content

Commit

Permalink
*: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Sep 19, 2023
1 parent 8a03089 commit 583d9d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/sspanel/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 注册/登录
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/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
4 changes: 2 additions & 2 deletions apps/sspanel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get(self, request):
return render(request, "web/login.html", context=context)


class TeleGramLoginView(View):
class TelegramLoginView(View):
def get(self, request):
try:
result = verify_telegram_authentication(
Expand Down Expand Up @@ -139,7 +139,7 @@ def get(self, request):
context = {
"form": TGLoginForm(initial={"tg_username": tg_username}),
}
return render(request, "web/social_login.html", context)
return render(request, "web/telegram_login.html", context)

def post(self, request):
form = TGLoginForm(request.POST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2 class="subtitle">
</div>
<div class="column is-12">
<div class="box">
<form class="form" action="{% url 'sspanel:tg_login' %}" method="post">
<form class="form" action="{% url 'sspanel:telegram_login' %}" method="post">
{% csrf_token %} {{ form.non_field_errors }} {% for field in form %} {{ field.label_tag }} {{ field }}
{{ field.errors }}
{% if field.help_text %}
Expand Down

0 comments on commit 583d9d8

Please sign in to comment.