Skip to content

Commit

Permalink
The race conditions and hanging tab (which was due to a strange bug i…
Browse files Browse the repository at this point in the history
…f you use a html form tag without a submit in React).

Uses viewerAccessRights to determine admin like rights.
There is a new "Create Account for Someone Else" button for users with admin like rights, that allows them to create
a person, but not verify their emails.  When that new user logs in with the credentials that they were sent, they will have to verify their email at that time.
There might be some edge cases, but it is ready to go.
  • Loading branch information
SailingSteve committed Mar 4, 2025
1 parent 11b22c6 commit a327939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/components/Login/ResetYourPassword.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const ResetYourPassword = ({ openDialog, closeDialog }) => {
id="field1"
inputRef={password1Ref}
label="Password"
type="password"
margin="dense"
name="password1"
required
Expand All @@ -159,6 +160,7 @@ const ResetYourPassword = ({ openDialog, closeDialog }) => {
id="field2"
inputRef={password2Ref}
label="Verify Password"
type="password"
margin="dense"
name="password2"
required
Expand Down
2 changes: 2 additions & 0 deletions src/js/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,15 @@ const Login = ({ classes }) => {
<TextField id="password"
label="Password"
variant="outlined"
type="password"
inputRef={passwordFldRef}
// defaultValue="12345678"
sx={{ display: 'block', paddingBottom: '15px' }}
/>
<TextField id="confirmPassword"
label="Confirm Password"
variant="outlined"
type="password"
inputRef={confirmPasswordFldRef}
// defaultValue="12345678"
sx={{ padding: '0 0 15px 10px', display: showCreateStuff ? 'block' : 'none' }}
Expand Down

0 comments on commit a327939

Please sign in to comment.