Fix login message.

This commit is contained in:
James Cole
2015-11-01 08:06:51 +01:00
parent 9f992f003d
commit 03e1673e92
3 changed files with 6 additions and 1 deletions

View File

@@ -89,6 +89,9 @@ class AuthController extends Controller
if (!is_null($foundUser)) {
// if it exists, show message:
$code = $foundUser->blocked_code;
if(strlen($code) == 0) {
$code = 'general_blocked';
}
$message = trans('firefly.' . $code . '_error', ['email' => $credentials['email']]);
}