mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix redirection after 2FA method change.
Authelia was using links with href="#" that changed the URL when clicked on. Therefore, this commit removes the href property and apply link style to tags without href property.
This commit is contained in:
parent
4eaafb7115
commit
d09a307ff8
|
@ -71,7 +71,7 @@ class SecondFactorForm extends Component<Props> {
|
|||
private renderUseAnotherMethodLink() {
|
||||
return (
|
||||
<div className={styles.anotherMethodLink}>
|
||||
<a href="#" onClick={this.props.onUseAnotherMethodClicked}>
|
||||
<a onClick={this.props.onUseAnotherMethodClicked}>
|
||||
Use another method
|
||||
</a>
|
||||
</div>
|
||||
|
@ -84,7 +84,7 @@ class SecondFactorForm extends Component<Props> {
|
|||
<div className={styles.header}>
|
||||
<div className={styles.hello}>Hello <b>{this.props.username}</b></div>
|
||||
<div className={styles.logout}>
|
||||
<a onClick={this.props.onLogoutClicked} href="#">Logout</a>
|
||||
<a onClick={this.props.onLogoutClicked}>Logout</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.body}>
|
||||
|
|
|
@ -68,7 +68,7 @@ export default class SecondFactorTOTP extends React.Component<Props, State> {
|
|||
value={this.state.oneTimePassword} />
|
||||
</TextField>
|
||||
<div className={styles.registerDeviceContainer}>
|
||||
<a className={classnames(styles.registerDevice, 'register-totp')} href="#"
|
||||
<a className={classnames(styles.registerDevice, 'register-totp')}
|
||||
onClick={this.props.onRegisterOneTimePasswordClicked}>
|
||||
Register new device
|
||||
</a>
|
||||
|
|
|
@ -41,7 +41,7 @@ export default class SecondFactorU2F extends React.Component<Props, State> {
|
|||
<CircleLoader status={u2fStatus}></CircleLoader>
|
||||
</div>
|
||||
<div className={styles.registerDeviceContainer}>
|
||||
<a className={classnames(styles.registerDevice, 'register-u2f')} href="#"
|
||||
<a className={classnames(styles.registerDevice, 'register-u2f')}
|
||||
onClick={this.props.onRegisterSecurityKeyClicked}>
|
||||
Register new device
|
||||
</a>
|
||||
|
|
|
@ -9,3 +9,8 @@ code {
|
|||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
|
@ -12,10 +12,10 @@
|
|||
one of the following links to test access control powered by Authelia.<br/>
|
||||
<ul>
|
||||
<li>
|
||||
public.example.com <a href="https://public.example.com:8080/"> / index.html</a>
|
||||
public.example.com <a href="https://public.example.com:8080/"> /</a>
|
||||
</li>
|
||||
<li>
|
||||
secure.example.com <a href="https://secure.example.com:8080/"> / secret.html</a>
|
||||
secure.example.com <a href="https://secure.example.com:8080/secret.html"> / secret.html</a>
|
||||
</li>
|
||||
<li>
|
||||
singlefactor.example.com <a href="https://singlefactor.example.com:8080/secret.html"> / secret.html</a>
|
||||
|
|
|
@ -23,6 +23,10 @@ class DockerCompose {
|
|||
async ps() {
|
||||
return Promise.resolve(execSync(this.commandPrefix + ' ps').toString('utf-8'));
|
||||
}
|
||||
|
||||
async logs(service: string) {
|
||||
await exec(this.commandPrefix + ' logs ' + service)
|
||||
}
|
||||
}
|
||||
|
||||
export default DockerCompose;
|
|
@ -11,6 +11,10 @@ class DockerEnvironment {
|
|||
await this.dockerCompose.up();
|
||||
}
|
||||
|
||||
async logs(service: string) {
|
||||
await this.dockerCompose.logs(service);
|
||||
}
|
||||
|
||||
async stop() {
|
||||
await this.dockerCompose.down();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ import { exec } from "../../helpers/utils/exec";
|
|||
import AutheliaServer from "../../helpers/context/AutheliaServer";
|
||||
import DockerEnvironment from "../../helpers/context/DockerEnvironment";
|
||||
|
||||
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 as any;
|
||||
|
||||
const autheliaServer = new AutheliaServer(__dirname + '/config.yml', [__dirname + '/users_database.yml']);
|
||||
const dockerEnv = new DockerEnvironment([
|
||||
'docker-compose.yml',
|
||||
|
|
Loading…
Reference in New Issue
Block a user