aboutsummaryrefslogtreecommitdiff
path: root/p/i/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-31 14:52:01 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-31 14:52:01 +0100
commit5c9a32329ad68dc5ae8bc8a3566a0d603b80a934 (patch)
treedea1d08894aeef6e3795ed8d2e9809d42560b9d7 /p/i/install.php
parent1ac09e7fe4a5408290d06116c6fb8152e018fe26 (diff)
Multi-utilisateur fonctionnel avec Mozilla Persona
Il faut ré-enregistrer l'adresse courriel une fois dans l'interface de FreshRSS pour créer le fichier nécessaire. + Comparaison sans tenir compte de la casse pour les noms d'utilisateur. Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126 ll faudra tester la sécurité
Diffstat (limited to 'p/i/install.php')
-rw-r--r--p/i/install.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/p/i/install.php b/p/i/install.php
index e953cf699..0cd952fef 100644
--- a/p/i/install.php
+++ b/p/i/install.php
@@ -178,6 +178,12 @@ function saveStep2 () {
@unlink($configPath); //To avoid access-rights problems
file_put_contents($configPath, "<?php\n return " . var_export($config_array, true) . ';');
+ if ($_SESSION['mail_login'] != '') {
+ $personaFile = DATA_PATH . '/persona/' . $_SESSION['mail_login'] . '.txt';
+ @unlink($personaFile);
+ file_put_contents($personaFile, $_SESSION['default_user']);
+ }
+
header ('Location: index.php?step=3');
}
}