Minor - Whispeak: Add flash message - refs BT#15941

pull/3377/head
Angel Fernando Quiroz Campos 6 years ago
parent 226b70e0d9
commit d66d646d84
  1. 6
      plugin/whispeakauth/ajax/record_audio.php

@ -185,6 +185,12 @@ if ($isAuthentify) {
.'<br><strong>' .'<br><strong>'
.$plugin->get_lang('LoginWithUsernameAndPassword') .$plugin->get_lang('LoginWithUsernameAndPassword')
.'</strong>'; .'</strong>';
if (!empty($user2fa)) {
Display::addFlash(
Display::return_message($message, 'warning', false)
);
}
} else { } else {
$message .= PHP_EOL.$plugin->get_lang('TryAgain'); $message .= PHP_EOL.$plugin->get_lang('TryAgain');

Loading…
Cancel
Save