Lines Matching refs:user
111 $user = $this->user_service->findByIdentifier($username);
113 if ($user === null) {
118 if (!$user->checkPassword($password)) {
123 if ($user->getPreference(UserInterface::PREF_IS_EMAIL_VERIFIED) !== '1') {
128 if ($user->getPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED) !== '1') {
133 Auth::login($user);
134 … Log::addAuthenticationLog('Login: ' . Auth::user()->userName() . '/' . Auth::user()->realName());
135 Auth::user()->setPreference(UserInterface::PREF_TIMESTAMP_ACTIVE, (string) time());
137 Session::put('language', Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));
138 Session::put('theme', Auth::user()->getPreference(UserInterface::PREF_THEME));
139 I18N::init(Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));