Commit Graph

8 Commits

Author SHA1 Message Date
Mathias Kresin
30a2852bad remove unused namespace imports and functions 2015-04-23 23:37:33 +02:00
Frederic Guillot
fa1ddb486a Normalize helper functions 2015-04-10 20:57:44 -04:00
Frederic Guillot
8c47ae3750 Fix bug remember me with multiple dbs disabled 2015-03-30 20:29:48 -04:00
Frederic Guillot
401a60c7a7 Improve remember me + update vendor 2015-03-30 20:13:07 -04:00
Mathias Kresin
525048bbb2 code cleanup
Add feeds only once to the feed_ids array (feed model), drop now unused select-db action.

Use $_SESSION['loggedin'] in favour of $_SESSION['user'] to reflect which information we do
expect from this session variable. Add nothing else than a flag, which indicates a logged in
user, to $_SESSION['loggedin'].

It's not necessary to know the current user name, since we do only have one user
per database. Same for the language setting. The database defines the front-end language.

Resolves bug where the password gets stored in the $_SESSION['user'] after a remember_me
login.
2015-01-28 05:24:17 +01:00
Frederic Guillot
cd1a0115c2 Minor cleanups 2015-01-17 18:53:40 -05:00
Mathias Kresin
cfd03efc01 Fix database hijacking
Check if a requested database can be selected. Error out if not.
This prevents automatic fallbacks to the default database.

Remove the authorized information from the session if a new database
gets selected.

Factor out logout function to reuse existing code.
2015-01-17 21:14:44 +01:00
Frédéric Guillot
7e553f72fd Add RememberMe authentication 2014-05-26 20:47:40 -04:00