mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix U2F sign request after u2f library upgrade.
This commit is contained in:
parent
9a0e5290d1
commit
baa1899536
|
@ -31,8 +31,8 @@ export default function (vars: ServerVariables) {
|
|||
vars.logger.debug(req, "AppId = %s, keyHandle = %s", appId, JSON.stringify(doc.registration.keyHandle));
|
||||
|
||||
const request = vars.u2f.request(appId, doc.registration.keyHandle);
|
||||
res.json(request);
|
||||
authSession.sign_request = request;
|
||||
res.json(request);
|
||||
return BluebirdPromise.resolve();
|
||||
})
|
||||
.catch(ErrorReplies.replyWithError200(req, res, vars.logger,
|
||||
|
|
|
@ -10,6 +10,7 @@ const includes = [
|
|||
"docker-compose.test.yml",
|
||||
"example/compose/docker-compose.base.yml",
|
||||
"example/compose/nginx/minimal/docker-compose.yml",
|
||||
"example/compose/smtp/docker-compose.yml",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ const includes = [
|
|||
"docker-compose.minimal.yml",
|
||||
"example/compose/docker-compose.base.yml",
|
||||
"example/compose/nginx/minimal/docker-compose.yml",
|
||||
"example/compose/smtp/docker-compose.yml",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import ClickOnLink from '../helpers/click-on-link';
|
|||
import ClickOnButton from '../helpers/click-on-button';
|
||||
import WaitRedirect from '../helpers/wait-redirected';
|
||||
import FillField from "../helpers/fill-field";
|
||||
import {GetLinkFromFile} from "../helpers/get-identity-link";
|
||||
import {GetLinkFromEmail} from "../helpers/get-identity-link";
|
||||
import FillLoginPageAndClick from "../helpers/fill-login-page-and-click";
|
||||
|
||||
const execAsync = Bluebird.promisify(ChildProcess.exec);
|
||||
|
@ -30,7 +30,7 @@ describe('Reset password', function() {
|
|||
.then(() => FillField(this.driver, "username", "john"))
|
||||
.then(() => ClickOnButton(this.driver, "Reset Password"))
|
||||
.then(() => this.driver.sleep(1000)) // Simulate the time to read it from mailbox.
|
||||
.then(() => GetLinkFromFile())
|
||||
.then(() => GetLinkFromEmail())
|
||||
.then((link) => VisitPage(this.driver, link))
|
||||
.then(() => FillField(this.driver, "password1", "newpass"))
|
||||
.then(() => FillField(this.driver, "password2", "newpass"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user