mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Fix Persona reloaded
When user is disconnected, current_user_mail must be null and not an empty string See #418
This commit is contained in:
@@ -32,7 +32,13 @@ if (Minz_Request::param ('output') === 'global') {
|
||||
|
||||
$authType = Minz_Configuration::authType();
|
||||
if ($authType === 'persona') {
|
||||
echo 'current_user_mail="' . Minz_Session::param ('mail', '') . '",';
|
||||
// If user is disconnected, current_user_mail MUST be null
|
||||
$mail = Minz_Session::param ('mail', false);
|
||||
if ($mail) {
|
||||
echo 'current_user_mail="' . $mail . '",';
|
||||
} else {
|
||||
echo 'current_user_mail=null,';
|
||||
}
|
||||
}
|
||||
|
||||
echo 'authType="', $authType, '",',
|
||||
|
||||
Reference in New Issue
Block a user