Add mail verification and use .env insteads of environment in compose
Some checks failed
Build & Push Docker Image / build (push) Has been cancelled

This commit is contained in:
2026-02-24 20:35:08 +01:00
parent 3898bf1b4b
commit 8be973a166
14 changed files with 388 additions and 19 deletions

View File

@@ -30,6 +30,9 @@ export function AuthProvider({ children }) {
const register = useCallback(async (name, email, password) => {
const res = await api.post('/auth/register', { name, email, password });
if (res.data.needsVerification) {
return { needsVerification: true };
}
localStorage.setItem('token', res.data.token);
setUser(res.data.user);
return res.data.user;