Merge 373d2aeb04 into 00cbf9fe80
This commit is contained in:
commit
7f9bec8b7b
7 changed files with 66 additions and 10 deletions
|
|
@ -137,6 +137,17 @@ export class SigninApiService {
|
|||
if (password == null) {
|
||||
reply.code(200);
|
||||
if (profile.twoFactorEnabled) {
|
||||
if (profile.usePasswordLessLogin && securityKeysAvailable) {
|
||||
const authRequest = await this.webAuthnService.initiateAuthentication(user.id);
|
||||
|
||||
return {
|
||||
finished: false,
|
||||
next: 'passkey',
|
||||
force: true,
|
||||
authRequest,
|
||||
} satisfies Misskey.entities.SigninFlowResponse;
|
||||
}
|
||||
|
||||
return {
|
||||
finished: false,
|
||||
next: 'password',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue