File tree Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 34
34
"react-dom" : " ^18.2.0" ,
35
35
"react-error-overlay" : " ^6.0.11" ,
36
36
"react-modal" : " ^3.15.1" ,
37
- "react-password-strength-bar" : " ^0.4.1" ,
38
37
"react-redux" : " ^8.0.4" ,
39
38
"react-router" : " ^6.4.1" ,
40
39
"react-router-dom" : " ^6.4.1" ,
78
77
"nodemailer" : " ^6.8.0" ,
79
78
"nodemon" : " ^2.0.20" ,
80
79
"react-devtools" : " ^4.26.0" ,
80
+ "react-password-strength-bar" : " ^0.4.1" ,
81
81
"react-test-renderer" : " ^18.2.0" ,
82
82
"style-loader" : " ^3.3.1" ,
83
83
"supertest" : " ^6.3.0" ,
Original file line number Diff line number Diff line change 91
91
id = 'username'
92
92
label = 'Username'
93
93
variant = 'outlined'
94
- value = 'sysadmin'
95
94
/>
96
95
< br />
97
96
< br />
100
99
label = 'Password'
101
100
type = 'password'
102
101
variant = 'outlined'
103
- value = 'belugas'
104
102
/>
105
103
< br />
106
104
{ /* * Login Button * */ }
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const SignUp = () => {
51
51
className = 'settingsForm'
52
52
component = 'form'
53
53
autoComplete = 'off'
54
- onSubmit = { ( e : any ) => handleNewUser ( e , e . target . roleID ) }
54
+ onSubmit = { ( e : any ) => handleNewUser ( e , '1' ) }
55
55
sx = { { color :'blue' } }
56
56
>
57
57
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const NewUserDisplay = () => {
75
75
className = 'settingsForm'
76
76
component = 'form'
77
77
autoComplete = 'off'
78
- onSubmit = { ( e : any ) => handleNewUser ( e , e . target . roleID ) }
78
+ onSubmit = { ( e : any ) => handleNewUser ( e , valueRole ) }
79
79
sx = { { color :'blue' } }
80
80
>
81
81
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import * as actions from '../../redux/actions/actions';
7
7
import React from 'react' ;
8
8
9
9
export const handleNewUser = ( e : React . SyntheticEvent , roleID : string ) => {
10
+
10
11
e . preventDefault ( ) ;
11
12
const username = ( < HTMLInputElement > document . getElementById ( 'signupUsername' ) ) . value ;
12
13
const password = ( < HTMLInputElement > document . getElementById ( 'signupPassword' ) ) . value ;
You can’t perform that action at this time.
0 commit comments