]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
file attachments
[friendica.git] / mod / openid.php
index c3c6c11e9e8f9a02a34ca84b240d5e4bb5a05ba1..537d84ce3891d9b283ecc6e1f21cd2af152acdab 100644 (file)
@@ -75,11 +75,11 @@ function openid_content(&$a) {
                        if($a->user['login_date'] === '0000-00-00 00:00:00') {
                                $_SESSION['return_url'] = 'profile_photo/new';
                                $a->module = 'profile_photo';
-                               notice( t("Welcome ") . $a->user['username'] . EOL);
-                               notice( t('Please upload a profile photo.') . EOL);
+                               info( t("Welcome ") . $a->user['username'] . EOL);
+                               info( t('Please upload a profile photo.') . EOL);
                        }
                        else
-                               notice( t("Welcome back ") . $a->user['username'] . EOL);
+                               info( t("Welcome back ") . $a->user['username'] . EOL);
 
 
                        if(strlen($a->user['timezone'])) {
@@ -103,11 +103,15 @@ function openid_content(&$a) {
                                $_SESSION['cid'] = $a->cid;
                        }
 
-                       q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1",
+                       $l = get_language();
+
+                       q("UPDATE `user` SET `login_date` = '%s', `language` = '%s' WHERE `uid` = %d LIMIT 1",
                                dbesc(datetime_convert()),
+                               dbesc($l),
                                intval($_SESSION['uid'])
                        );
 
+
                        header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] .'"');
                        if(($a->module !== 'home') && isset($_SESSION['return_url']))
                                goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);
@@ -118,4 +122,4 @@ function openid_content(&$a) {
        notice( t('Login failed.') . EOL);
        goaway($a->get_baseurl());
        // NOTREACHED
-}
\ No newline at end of file
+}