File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class Login extends React.Component {
91
91
< Form onSubmit = { ( e ) => this . handleLogin ( e , api , userContext . login ) } className = "col-3" >
92
92
< h3 className = "row" > Login</ h3 >
93
93
< Row className = "pb-2" >
94
- < input
94
+ < Form . Control
95
95
type = "email"
96
96
className = "form-control"
97
97
placeholder = "Email"
@@ -102,7 +102,7 @@ class Login extends React.Component {
102
102
/>
103
103
</ Row >
104
104
< Row className = "pb-4" >
105
- < input
105
+ < Form . Control
106
106
type = "password"
107
107
className = "form-control"
108
108
placeholder = "Password"
@@ -113,18 +113,25 @@ class Login extends React.Component {
113
113
/>
114
114
</ Row >
115
115
< Row className = "pb-4 form-check" >
116
- < input
116
+ < Form . Check . Input
117
117
type = "checkbox"
118
118
className = "form-check-input"
119
119
id = "rememberMe"
120
120
defaultChecked = { userContext . isRememberMeOn }
121
121
onChange = { ( ) => userContext . setRememberMe ( ! userContext . isRememberMeOn ) }
122
122
/>
123
- < label htmlFor = "rememberMe" > Remember Me</ label >
123
+ < Form . Check . Label htmlFor = "rememberMe" > Remember Me</ Form . Check . Label >
124
124
</ Row >
125
125
< Row >
126
126
< Button type = "submit" variant = "primary" > Login</ Button >
127
127
</ Row >
128
+ < br />
129
+ < br />
130
+ < Row >
131
+ < Form . Text id = "adminHelpBlock" muted >
132
+ If you need to create your first admin user, use: "sails run create-admin".
133
+ </ Form . Text >
134
+ </ Row >
128
135
</ Form >
129
136
)
130
137
}
You can’t perform that action at this time.
0 commit comments