Minor - Whispeak fix message - refs BT#15941

pull/3377/head
Angel Fernando Quiroz Campos 7 years ago
parent 34b6113fe5
commit d582440d5b
  1. 4
      plugin/whispeakauth/authentify.php
  2. 15
      plugin/whispeakauth/authentify_password.php

@ -29,9 +29,7 @@ if (ChamiloSession::read(WhispeakAuthPlugin::SESSION_AUTH_PASSWORD, false)) {
'warning'
);
if (!empty($lpQuestionInfo)) {
echo $message;
} else {
if (empty($lpQuestionInfo)) {
Display::addFlash($message);
}

@ -24,14 +24,13 @@ if (empty($userId)) {
api_not_allowed($showHeader);
}
if (empty($wsid)) {
$message = Display::return_message($plugin->get_lang('SpeechAuthNotEnrolled'), 'warning');
if (!empty($lpQuestionInfo)) {
echo $message;
} else {
Display::addFlash($message);
}
if (!empty($lpQuestionInfo)) {
echo Display::return_message(
$plugin->get_lang('MaxAttemptsReached').'<br>'
.'<strong>'.$plugin->get_lang('LoginWithUsernameAndPassword').'</strong>',
'warning',
false
);
}
$form = new FormValidator(

Loading…
Cancel
Save