From 37a253e63af9be415f39fa8a0ee2a97107c8577c Mon Sep 17 00:00:00 2001 From: Akira Miyata Date: Thu, 1 Aug 2024 17:50:15 +0000 Subject: [PATCH] temp update --- ...801_1310.py => 0040_auto_20240801_1729.py} | 2 +- rog/templates/verification-template.html | 2 +- rog/templates/verification_success.html | 32 +++++++++++++++++++ rog/views.py | 6 ++-- 4 files changed, 37 insertions(+), 5 deletions(-) rename rog/migrations/{0040_auto_20240801_1310.py => 0040_auto_20240801_1729.py} (94%) create mode 100644 rog/templates/verification_success.html diff --git a/rog/migrations/0040_auto_20240801_1310.py b/rog/migrations/0040_auto_20240801_1729.py similarity index 94% rename from rog/migrations/0040_auto_20240801_1310.py rename to rog/migrations/0040_auto_20240801_1729.py index aaf6414..88db307 100644 --- a/rog/migrations/0040_auto_20240801_1310.py +++ b/rog/migrations/0040_auto_20240801_1729.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.9 on 2024-08-01 04:10 +# Generated by Django 3.2.9 on 2024-08-01 08:29 from django.db import migrations, models diff --git a/rog/templates/verification-template.html b/rog/templates/verification-template.html index cb60924..c16095b 100644 --- a/rog/templates/verification-template.html +++ b/rog/templates/verification-template.html @@ -25,7 +25,7 @@
-

メール確認成功

+

{{title}}

{{ message }}

diff --git a/rog/templates/verification_success.html b/rog/templates/verification_success.html new file mode 100644 index 0000000..cb60924 --- /dev/null +++ b/rog/templates/verification_success.html @@ -0,0 +1,32 @@ + + + + + + メール確認成功 + + + +
+

メール確認成功

+

{{ message }}

+
+ + diff --git a/rog/views.py b/rog/views.py index f6ba03c..3524ab8 100644 --- a/rog/views.py +++ b/rog/views.py @@ -1650,14 +1650,14 @@ class VerifyEmailView(APIView): message = "メールアドレスが確認され、アカウントが作成されました。アプリでログインして、必要な情報を入力してください。" temp_user.delete() - return render(request, 'verification_success.html', {'message': message}) + return render(request, 'verification_success.html', {'message': message,'title':"認証成功"}) else: message = "確認リンクの有効期限が切れています。アプリから認証コードの再送信をしてください。" - return render(request, 'verification_success.html', {'message': message}) + return render(request, 'verification_success.html', {'message': message,'title':'有効期限切れ'}) except TempUser.DoesNotExist: message = "無効な確認コードです。" - return render(request, 'verification_success.html', {'message': message}) + return render(request, 'verification_success.html', {'message': message,'title':'無効な確認コードです'}) class MemberUserDetailView(generics.RetrieveAPIView):