sndev login: fix identifier on conflict

This commit is contained in:
keyan 2024-03-13 20:05:29 -05:00
parent c8e65d5a23
commit 5065b32bde
1 changed files with 1 additions and 1 deletions

2
sndev
View File

@ -309,7 +309,7 @@ sndev__login() {
INSERT INTO verification_requests (identifier, token, expires) INSERT INTO verification_requests (identifier, token, expires)
VALUES ('$1@sndev.team', '$token', NOW() + INTERVAL '1 day') VALUES ('$1@sndev.team', '$token', NOW() + INTERVAL '1 day')
ON CONFLICT (token) DO UPDATE ON CONFLICT (token) DO UPDATE
SET identifier = '$1', expires = NOW() + INTERVAL '1 day'; SET identifier = '$1@sndev.team', expires = NOW() + INTERVAL '1 day';
EOF EOF
echo echo