Skip to content

Commit 858241f

Browse files
committed
A few minor adjustments.
1 parent e1b9c00 commit 858241f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

assets/src/Admin/Login.jsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Login extends React.Component {
9191
<Form onSubmit={(e) => this.handleLogin(e, api, userContext.login)} className="col-3">
9292
<h3 className="row">Login</h3>
9393
<Row className="pb-2">
94-
<input
94+
<Form.Control
9595
type="email"
9696
className="form-control"
9797
placeholder="Email"
@@ -102,7 +102,7 @@ class Login extends React.Component {
102102
/>
103103
</Row>
104104
<Row className="pb-4">
105-
<input
105+
<Form.Control
106106
type="password"
107107
className="form-control"
108108
placeholder="Password"
@@ -113,18 +113,25 @@ class Login extends React.Component {
113113
/>
114114
</Row>
115115
<Row className="pb-4 form-check">
116-
<input
116+
<Form.Check.Input
117117
type="checkbox"
118118
className="form-check-input"
119119
id="rememberMe"
120120
defaultChecked={userContext.isRememberMeOn}
121121
onChange={() => userContext.setRememberMe(!userContext.isRememberMeOn)}
122122
/>
123-
<label htmlFor="rememberMe">Remember Me</label>
123+
<Form.Check.Label htmlFor="rememberMe">Remember Me</Form.Check.Label>
124124
</Row>
125125
<Row>
126126
<Button type="submit" variant="primary">Login</Button>
127127
</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>
128135
</Form>
129136
)
130137
}

0 commit comments

Comments
 (0)