EE: PLT-4512 Show secret in addition to QR code when activating MFA (#4427)
* EE: Update MFA to display secret for manual entry * Width adjustments for secret (#4423) * Add unit test
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
5b34ac6e1e
Коммит
0234f793f2
@@ -391,6 +391,19 @@ describe('Client.User', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('generateMfaSecret', function(done) {
|
||||
TestHelper.initBasic(() => {
|
||||
TestHelper.basicClient().generateMfaSecret(
|
||||
function() {
|
||||
done(new Error('not enabled'));
|
||||
},
|
||||
function() {
|
||||
done();
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('getSessions', function(done) {
|
||||
TestHelper.initBasic(() => {
|
||||
TestHelper.basicClient().getSessions(
|
||||
|
||||
Ссылка в новой задаче
Block a user