diff options
author | plegall <plg@piwigo.org> | 2015-12-31 19:59:08 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2015-12-31 19:59:08 +0100 |
commit | 4aeedb5a2ea455c503721de29a35e8a3c1fa0a9d (patch) | |
tree | 1e5892d3f32f1491d85067cc9def93270649c8c6 /include/user.inc.php | |
parent | eee57a5d2ece31f9b99485f82a310b80d8fa3935 (diff) |
feature #392, authentication keys, album notification
* On album notification (for a group), sends one distinct email for each user
with a new authentication key.
* When someone clicks the link with auth=<key> in URL, if the user is not
already connected, Piwigo will automatically connect the user.
Diffstat (limited to '')
-rw-r--r-- | include/user.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index 4de5cc6c3..c02fcb0ac 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -65,6 +65,12 @@ if ($conf['apache_authentication']) } } +// automatic login by authentication key +if (isset($_GET['auth'])) +{ + auth_key_login($_GET['auth']); +} + $user = build_user( $user['id'], ( defined('IN_ADMIN') and IN_ADMIN ) ? false : true // use cache ? ); |