]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Authentication.php
Only display redundant preview data with preview picture
[friendica.git] / src / App / Authentication.php
index 678bb0058c692e2aae978471f5cd1717e4251cb2..e3d273747029b452226a9a017737706984af64f8 100644 (file)
@@ -207,7 +207,7 @@ class Authentication
 
                // if it's an email address or doesn't resolve to a URL, fail.
                if ($noid || strpos($openid_url, '@') || !Network::isUrlValid($openid_url)) {
-                       notice($this->l10n->t('Login failed.') . EOL);
+                       notice($this->l10n->t('Login failed.'));
                        $this->baseUrl->redirect();
                }
 
@@ -270,7 +270,7 @@ class Authentication
                        }
                } catch (Exception $e) {
                        $this->logger->warning('authenticate: failed login attempt', ['action' => 'login', 'username' => Strings::escapeTags($username), 'ip' => $_SERVER['REMOTE_ADDR']]);
-                       info($this->l10n->t('Login failed. Please check your credentials.' . EOL));
+                       notice($this->l10n->t('Login failed. Please check your credentials.'));
                        $this->baseUrl->redirect();
                }
 
@@ -389,8 +389,6 @@ class Authentication
                                info($this->l10n->t('Welcome %s', $user_record['username']));
                                info($this->l10n->t('Please upload a profile photo.'));
                                $this->baseUrl->redirect('settings/profile/photo/new');
-                       } else {
-                               info($this->l10n->t("Welcome back %s", $user_record['username']));
                        }
                }