Fix code
This commit is contained in:
parent
7f09e1f960
commit
bf385a84ce
|
@ -171,7 +171,7 @@ sub run {
|
||||||
$self->p->updatePersistentSession( $req,
|
$self->p->updatePersistentSession( $req,
|
||||||
{ _2fDevices => to_json( \@keep ) } );
|
{ _2fDevices => to_json( \@keep ) } );
|
||||||
$self->userLogger->notice('TOTP registration succeed');
|
$self->userLogger->notice('TOTP registration succeed');
|
||||||
return [ 200, [ 'Content-Type' => 'application/json' ],
|
return [ 200, [ 'Content-Type' => 'application/json', 'Content-Length' => 12, ],
|
||||||
['{"result":1}'] ];
|
['{"result":1}'] ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ sub run {
|
||||||
$self->p->updatePersistentSession( $req,
|
$self->p->updatePersistentSession( $req,
|
||||||
{ _2fDevices => to_json( \@keep ) } );
|
{ _2fDevices => to_json( \@keep ) } );
|
||||||
$self->userLogger->notice('TOTP deletion succeed');
|
$self->userLogger->notice('TOTP deletion succeed');
|
||||||
return [ 200, [ 'Content-Type' => 'application/json' ],
|
return [ 200, [ 'Content-Type' => 'application/json', 'Content-Length' => 12, ],
|
||||||
['{"result":1}'] ];
|
['{"result":1}'] ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ sub run {
|
||||||
],
|
],
|
||||||
[$challenge]
|
[$challenge]
|
||||||
];
|
];
|
||||||
return [ 200, [ 'Content-Type' => 'application/json' ], [$challenge] ];
|
# return twice ??? return [ 200, [ 'Content-Type' => 'application/json' ], [$challenge] ];
|
||||||
}
|
}
|
||||||
if ( $action eq 'registration' ) {
|
if ( $action eq 'registration' ) {
|
||||||
my ( $resp, $challenge );
|
my ( $resp, $challenge );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user