-
Notifications
You must be signed in to change notification settings - Fork 189
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
Conversation
idp/ui/src/containers/Login/Login.js
Outdated
@@ -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>} |
There was a problem hiding this comment.
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;
? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
5fcb081
to
661baaa
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this 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!
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](https://user-images.githubusercontent.com/5579653/158601859-08ed1f8b-dae8-4c5c-9347-e5afd18374c1.png)