diff --git a/package-lock.json b/package-lock.json index aa696be5..847235a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@oryd/kratos-client": { - "version": "0.0.0-next.e568324ce78b", - "resolved": "https://registry.npmjs.org/@oryd/kratos-client/-/kratos-client-0.0.0-next.e568324ce78b.tgz", - "integrity": "sha512-Ws7T0TSg6/XzR0qvSbULE4kyzPUrkBRmtZ+BWy4C1T0aIIA+Yl6QScesKEdY6UQHLzdPBxY6wM3IULcyjXam0g==", + "version": "0.0.0-next.2609b90cf011", + "resolved": "https://registry.npmjs.org/@oryd/kratos-client/-/kratos-client-0.0.0-next.2609b90cf011.tgz", + "integrity": "sha512-d8P2CJ4CMc3onNRIybIn/nCTbPP2fnT8LzgL1vTmWg2ncew7VEJJpqncT0vgw2wmvWUNCO2v/ZpSw05RF4dpOQ==", "requires": { "@types/bluebird": "*", "@types/request": "*", diff --git a/package.json b/package.json index 08c0c258..ede696ab 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "homepage": "https://github.com/ory/kratos-selfservice-ui-node#readme", "dependencies": { - "@oryd/kratos-client": "0.0.0-next.e568324ce78b", + "@oryd/kratos-client": "0.0.0-next.2609b90cf011", "@types/cookie-parser": "^1.4.2", "@types/express": "^4.17.2", "@types/express-handlebars": "0.0.33", diff --git a/src/routes/auth.ts b/src/routes/auth.ts index 04854524..5a9af4a9 100644 --- a/src/routes/auth.ts +++ b/src/routes/auth.ts @@ -72,7 +72,11 @@ export const authHandler = (type: 'login' | 'registration') => ( } } - res.render(type, {oidc:methodConfig("oidc"), password:methodConfig("password")}) + res.render(type, { + ...request, + oidc:methodConfig("oidc"), + password:methodConfig("password"), + }) }) .catch(err => { console.error(err) diff --git a/src/routes/settings.ts b/src/routes/settings.ts index 2a97a75c..56b03ba4 100644 --- a/src/routes/settings.ts +++ b/src/routes/settings.ts @@ -33,6 +33,7 @@ const settingsHandler = (req: Request, res: Response, next: NextFunction) => { if (request) { res.render('settings', { + ...request, password: methodConfig("password"), profile: methodConfig("profile"), oidc: methodConfig("oidc"), diff --git a/src/routes/verification.ts b/src/routes/verification.ts index 7dd9ee92..ef6e35b5 100644 --- a/src/routes/verification.ts +++ b/src/routes/verification.ts @@ -31,7 +31,9 @@ export default (req: Request, res: Response, next: NextFunction) => { return body } ).then((request: any) => { - res.render('verification', request.form) + res.render('verification', { + ...request + }) } ).catch((err: any) => next(err)) } diff --git a/views/login.hbs b/views/login.hbs index f3e56440..df631a26 100644 --- a/views/login.hbs +++ b/views/login.hbs @@ -3,6 +3,8 @@ {{> icon_logo}}