File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function setRecoveryCodes(req: Request) {
7
7
return { success : success , message : 'Recovery codes set!' } ;
8
8
}
9
9
10
- function veryifyRecoveryCode ( req : Request ) {
10
+ function verifyRecoveryCode ( req : Request ) {
11
11
const success = recovery_codes . verifyRecoveryCode ( req . body . recovery_code_guess ) ;
12
12
13
13
return { success : success } ;
@@ -59,7 +59,7 @@ function getUsedRecoveryCodes() {
59
59
export default {
60
60
setRecoveryCodes,
61
61
generateRecoveryCodes,
62
- veryifyRecoveryCode ,
62
+ verifyRecoveryCode ,
63
63
checkForRecoveryKeys,
64
64
getUsedRecoveryCodes
65
65
} ;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function register(app: express.Application) {
126
126
apiRoute ( GET , '/api/oauth/validate' , openID . isTokenValid ) ;
127
127
128
128
apiRoute ( PST , '/api/totp_recovery/set' , recoveryCodes . setRecoveryCodes ) ;
129
- apiRoute ( PST , '/api/totp_recovery/verify' , recoveryCodes . veryifyRecoveryCode ) ;
129
+ apiRoute ( PST , '/api/totp_recovery/verify' , recoveryCodes . verifyRecoveryCode ) ;
130
130
apiRoute ( GET , '/api/totp_recovery/generate' , recoveryCodes . generateRecoveryCodes ) ;
131
131
apiRoute ( GET , '/api/totp_recovery/enabled' , recoveryCodes . checkForRecoveryKeys ) ;
132
132
apiRoute ( GET , '/api/totp_recovery/used' , recoveryCodes . getUsedRecoveryCodes ) ;
You can’t perform that action at this time.
0 commit comments