Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cicer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meskio
cicer
Commits
d34faf2b
Unverified
Commit
d34faf2b
authored
10 months ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
Load the right component for password reset
parent
f6a009eb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Panel.js
+2
-3
2 additions, 3 deletions
src/Panel.js
src/ResetPassword.js
+4
-0
4 additions, 0 deletions
src/ResetPassword.js
with
6 additions
and
3 deletions
src/Panel.js
+
2
−
3
View file @
d34faf2b
...
...
@@ -85,9 +85,8 @@ function UnlogedPanel(props) {
<
BrowserRouter
>
<
Routes
>
<
Route
path
=
"
/
"
element
=
{
<
SignIn
onLogin
=
{
props
.
onLogin
}
/>} /
>
<
Route
path
=
"
/reset/
"
element
=
{
<
ResetRequest
/>
}
>
<
Route
path
=
"
:token
"
element
=
{
<
ResetPassword
/>
}
/
>
<
/Route
>
<
Route
path
=
"
/reset/
"
element
=
{
<
ResetRequest
/>
}
/
>
<
Route
path
=
"
/reset/:token
"
element
=
{
<
ResetPassword
/>
}
/
>
<
/Routes
>
<
/BrowserRouter
>
<
/Container
>
...
...
This diff is collapsed.
Click to expand it.
src/ResetPassword.js
+
4
−
0
View file @
d34faf2b
...
...
@@ -23,6 +23,10 @@ function ResetPassword() {
})
.
then
((
member
)
=>
{
setNeedsLogin
(
!
member
.
login
);
})
.
catch
((
e
)
=>
{
console
.
log
(
"
Error with reset:
"
+
e
.
message
);
setValidToken
(
""
);
});
}
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment