refactor: update Dockerfile and authentication flow for improved user experience
All checks were successful
Deploy / deploy (push) Successful in 15m6s
All checks were successful
Deploy / deploy (push) Successful in 15m6s
- Updated Dockerfile to create a cache directory for Next.js runtime, ensuring proper permissions and ownership. - Enhanced the authentication flow by updating the magic link expiration time from 5 to 15 minutes, improving user experience and reducing login issues. - Added user-friendly error handling for invalid or expired magic links, providing clear feedback on the login page. - Adjusted email templates to reflect the new 15-minute validity period for magic links. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ export function magicLinkEpostasi(url: string): EpostaIcerik {
|
||||
</h1>
|
||||
<p style="margin:0 0 24px;">
|
||||
Aşağıdaki butona tıklayarak KolayTercih hesabına giriş yapabilirsin.
|
||||
Bağlantı <strong style="color:${LACIVERT};">5 dakika</strong> geçerli ve
|
||||
Bağlantı <strong style="color:${LACIVERT};">15 dakika</strong> geçerli ve
|
||||
yalnızca bir kez kullanılabilir.
|
||||
</p>
|
||||
${buton(guvenliUrl, "Giriş yap")}
|
||||
@@ -142,7 +142,7 @@ export function magicLinkEpostasi(url: string): EpostaIcerik {
|
||||
return {
|
||||
subject: "Merhaba, giriş bağlantını gönderdik",
|
||||
html: kabuk({
|
||||
onizleme: "Giriş bağlantın 5 dakika geçerli.",
|
||||
onizleme: "Giriş bağlantın 15 dakika geçerli.",
|
||||
govde,
|
||||
baslikEtiketi: "Merhaba, giriş bağlantını gönderdik",
|
||||
}),
|
||||
@@ -152,7 +152,7 @@ export function magicLinkEpostasi(url: string): EpostaIcerik {
|
||||
"Hesabına giriş yapmak için bu adresi tarayıcında aç:",
|
||||
url,
|
||||
"",
|
||||
"Bağlantı 5 dakika geçerli ve yalnızca bir kez kullanılabilir.",
|
||||
"Bağlantı 15 dakika geçerli ve yalnızca bir kez kullanılabilir.",
|
||||
"Bu isteği sen yapmadıysan bu e-postayı yok sayabilirsin.",
|
||||
].join("\n"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user