Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User is not redirected to User Profile if registered with No "Email Verification" #22466

Open
AKhateeb opened this issue May 11, 2024 · 1 comment

Comments

@AKhateeb
Copy link

Describe the Improvement

When a user registers (Signup) to the Directus instance given that admin has unchecked "Verify Email", then user is redirected to Model page

Expected: User should be redirected to User Profile page regardless "Verify Email" is checked or not

@DanielBiegler
Copy link
Contributor

Ahhh nice catch! You're correct.

For the verification we get the id and redirect:

		const id = await service.verifyRegistration(value);

		return res.redirect(`/admin/users/${id}`);

But for the registration we continue normally:

		await usersService.registerUser(value);

		return next();

Currently this happens in the /api/src/controllers/users.ts file 😄 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Ready
Development

No branches or pull requests

3 participants