Commit Graph

13 Commits

Author SHA1 Message Date
Frederic Guillot
8ac08649e8
Move generate_token() to Helper namespace 2016-08-17 21:41:14 -04:00
Frederic Guillot
d3fb2bf69d
Update PicoDb version 2016-07-30 18:41:42 -04:00
Frederic Guillot
aaaafb263b Run php-cs-fixer on the code base 2016-04-17 19:44:45 -04:00
Frederic Guillot
33a4bf2202 Remove some code duplication and fix some minor issues 2015-08-14 22:08:04 -04:00
Frederic Guillot
4f7ea89925 Update dependencies 2015-08-14 21:33:39 -04:00
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