temp update

This commit is contained in:
2024-08-01 17:50:15 +00:00
parent bc74b14cbc
commit 37a253e63a
4 changed files with 37 additions and 5 deletions

View File

@ -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 from django.db import migrations, models

View File

@ -25,7 +25,7 @@
</head> </head>
<body> <body>
<div class="message"> <div class="message">
<h1>メール確認成功</h1> <h1>{{title}}</h1>
<p>{{ message }}</p> <p>{{ message }}</p>
</div> </div>
</body> </body>

View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>メール確認成功</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
.message {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
text-align: center;
}
</style>
</head>
<body>
<div class="message">
<h1>メール確認成功</h1>
<p>{{ message }}</p>
</div>
</body>
</html>

View File

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