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 password reset link to login page #3329

Merged
merged 1 commit into from
Mar 18, 2022
Merged

add password reset link to login page #3329

merged 1 commit into from
Mar 18, 2022

Conversation

C0rby
Copy link
Contributor

@C0rby C0rby commented Mar 16, 2022

Added a configurable passwort reset link to the login page.
It can be set via IDP_PASSWORD_RESET_URI. If the option is not set, the link will not be shown.

It looks like this:
image

@C0rby C0rby requested review from micbar and wkloucek March 16, 2022 13:36
@C0rby C0rby self-assigned this Mar 16, 2022
@@ -108,6 +110,8 @@ class Login extends React.PureComponent {
/>
{hasError && <Typography id="oc-login-error-message" variant="subtitle2" component="span" color="error"
className={classes.message}>{errorMessage}</Typography>}
<br />
{loginFailed && passwordResetLink && <Link id="oc-login-password-reset" href={passwordResetLink} variant="subtitle2">{"Reset password?"}</Link>}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we wrap this into a <p> tag and have it with text-align: center;? :)

Copy link
Contributor Author

@C0rby C0rby Mar 16, 2022

Choose a reason for hiding this comment

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

I'm personally not a fan of that but yeah I can do it.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, in my eyes it looks way better 😇 let me do a proper review now! Review incoming

@sonarcloud
Copy link

sonarcloud bot commented Mar 16, 2022

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

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

Works like a charm!

@C0rby C0rby merged commit e0a35d3 into master Mar 18, 2022
@delete-merged-branch delete-merged-branch bot deleted the password-reset-link branch March 18, 2022 08:09
ownclouders pushed a commit that referenced this pull request Mar 18, 2022
Merge: ae50a4d 661baaa
Author: David Christofas <dchristofas@owncloud.com>
Date:   Fri Mar 18 09:09:06 2022 +0100

    Merge pull request #3329 from owncloud/password-reset-link

    add password reset link to login page
@micbar micbar mentioned this pull request Mar 29, 2022
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants