mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 18:30:17 +01:00
Merge pull request #783 from wallabag/message-after-login
#763 fix to display the login successful message with the translation
This commit is contained in:
commit
051f7fb28c
@ -524,6 +524,14 @@ class Poche
|
||||
$longlastingsession = isset($_POST['longlastingsession']);
|
||||
$passwordTest = ($isauthenticated) ? $user['password'] : Tools::encodeString($password . $login);
|
||||
Session::login($user['username'], $user['password'], $login, $passwordTest, $longlastingsession, array('poche_user' => new User($user)));
|
||||
|
||||
# reload l10n
|
||||
$language = $user['config']['language'];
|
||||
@putenv('LC_ALL=' . $language);
|
||||
setlocale(LC_ALL, $language);
|
||||
bindtextdomain($language, LOCALE);
|
||||
textdomain($language);
|
||||
|
||||
$this->messages->add('s', _('welcome to your wallabag'));
|
||||
Tools::logm('login successful');
|
||||
Tools::redirect($referer);
|
||||
|
Loading…
Reference in New Issue
Block a user