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

Add SMTP check for reset password link #5303

Merged

Conversation

scouillard
Copy link
Contributor

@scouillard scouillard commented Jul 4, 2023

Solves #5059

The "Reset Password link on the sign in page should be removed if the SMTP server is not set up.
The /forget_password component should redirect to homepage if the SMTP server is not set up.

@sonarcloud
Copy link

sonarcloud bot commented Jul 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information


export default function ForgetPassword() {
const { t } = useTranslation();
const { data: env, isLoading } = useEnv();

if (isLoading) return null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't we stopped doing this due to weird loading issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is glitchy without it - the card will flash briefly before redirection.

I don't remember the isLoading being a problem.

It is used elsewhere.

image

The proper solution would be to make a placeholder but really this is an edgecase.

It is only if a user tries to access /forget_password directly which should pretty much never happen.

@farhatahmad farhatahmad merged commit 397f9be into bigbluebutton:master Jul 5, 2023
3 checks passed
pachidj87 pushed a commit to ZumbTech/Auditorium that referenced this pull request Jul 19, 2023
* Add SMTP check for reset password link

* Add redirect to /forget_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants