|
@@ -72,7 +72,7 @@ class Login extends Component {
|
|
|
} else if ([2020, 2021].includes(auth.data.user.role.id)) {
|
|
} else if ([2020, 2021].includes(auth.data.user.role.id)) {
|
|
|
Router.push({ pathname: "/app/pemantauan" });
|
|
Router.push({ pathname: "/app/pemantauan" });
|
|
|
} else {
|
|
} else {
|
|
|
- this.setState({ error: "Akun tidak ada" })
|
|
|
|
|
|
|
+ this.setState({ error: "Akun tidak ada" });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -88,19 +88,26 @@ class Login extends Component {
|
|
|
render() {
|
|
render() {
|
|
|
return (
|
|
return (
|
|
|
<Card className="card card-flat">
|
|
<Card className="card card-flat">
|
|
|
- <img className="card-img-top" src="/static/img/Logo-Sidali.png" alt="Logo" />
|
|
|
|
|
|
|
+ <img className="img-login-1" src="/static/img/logo-login.png" alt="Logo" />
|
|
|
<CardBody className="card-body">
|
|
<CardBody className="card-body">
|
|
|
{" "}
|
|
{" "}
|
|
|
- <h5 className="card-title text-left py-2 bg-gray border-radius-login"><img className="icon-triangle" src="/static/img/icon-caution.png"></img><b>Login Menggunakan Akun PDDIKTI </b></h5>
|
|
|
|
|
|
|
+ <h5 className="card-title text-left py-2 bg-gray border-radius-login">
|
|
|
|
|
+ <img className="icon-triangle" src="/static/img/icon-caution.png"></img>
|
|
|
|
|
+ <b>Login Menggunakan Akun PDDIKTI </b>
|
|
|
|
|
+ </h5>
|
|
|
{this.state.error}
|
|
{this.state.error}
|
|
|
<form onSubmit={this.onSubmit} method="post" name="formLogin">
|
|
<form onSubmit={this.onSubmit} method="post" name="formLogin">
|
|
|
<div className="form-group">
|
|
<div className="form-group">
|
|
|
- <label className="col-form-label">Username *</label>
|
|
|
|
|
|
|
+ <label className="col-form-label">
|
|
|
|
|
+ Username<span className="text-warning">*</span>
|
|
|
|
|
+ </label>
|
|
|
<Input type="text" name="username" invalid={this.hasError("formLogin", "username", "required")} onChange={this.validateOnChange} data-validate='["required"]' value={this.state.formLogin.username} />
|
|
<Input type="text" name="username" invalid={this.hasError("formLogin", "username", "required")} onChange={this.validateOnChange} data-validate='["required"]' value={this.state.formLogin.username} />
|
|
|
{this.hasError("formLogin", "username", "required") && <span className="invalid-feedback">Field is required</span>}
|
|
{this.hasError("formLogin", "username", "required") && <span className="invalid-feedback">Field is required</span>}
|
|
|
</div>
|
|
</div>
|
|
|
<div className="form-group">
|
|
<div className="form-group">
|
|
|
- <label className="col-form-label">Password *</label>
|
|
|
|
|
|
|
+ <label className="col-form-label">
|
|
|
|
|
+ Password<span className="text-warning">*</span>
|
|
|
|
|
+ </label>
|
|
|
<Input
|
|
<Input
|
|
|
type="password"
|
|
type="password"
|
|
|
id="id-password"
|
|
id="id-password"
|
|
@@ -115,7 +122,9 @@ class Login extends Component {
|
|
|
{/* <div className="required">* Required fields</div>
|
|
{/* <div className="required">* Required fields</div>
|
|
|
<span>Login Menggunakan Akun PDDIKTI</span> */}
|
|
<span>Login Menggunakan Akun PDDIKTI</span> */}
|
|
|
<Button color="info" type="submit" block className=" mt-3 btn-login">
|
|
<Button color="info" type="submit" block className=" mt-3 btn-login">
|
|
|
- Login
|
|
|
|
|
|
|
+ <text className="text-login">
|
|
|
|
|
+ <b>Login</b>
|
|
|
|
|
+ </text>
|
|
|
</Button>
|
|
</Button>
|
|
|
</form>
|
|
</form>
|
|
|
</CardBody>
|
|
</CardBody>
|