mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 18:13:26 +00:00
Add challenge type validation
This commit is contained in:
@@ -37,7 +37,7 @@ export const manageAuthRouter = makeRouter((app) => {
|
||||
|
||||
const challenge = new ChallengeCode();
|
||||
challenge.authType = 'mnemonic';
|
||||
challenge.stage = 'registration';
|
||||
challenge.flow = 'registration';
|
||||
|
||||
await em.persistAndFlush(challenge);
|
||||
|
||||
@@ -56,6 +56,8 @@ export const manageAuthRouter = makeRouter((app) => {
|
||||
body.challenge.code,
|
||||
body.publicKey,
|
||||
body.challenge.signature,
|
||||
'registration',
|
||||
'mnemonic',
|
||||
);
|
||||
|
||||
const user = new User();
|
||||
|
Reference in New Issue
Block a user