aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-05-31fixes #478, add new column user_infos.last_visitplegall1-0/+42
This will speed up user edit popin opening, by avoiding to search in history for the last user visit. The column user_infos.last_visit_from_history true/false says if the last_visit has already been search in history (to avoid making it twice). I could have implemented the search of last_visit for all users in the migration task 149 but in case of many users and long history, it would have taken years to execute...
2016-02-12typo fixedplegall1-1/+1
2016-02-12fixes #414, deactivate auth keys on password changeplegall1-0/+18
2016-02-10session_regenerate_id() still fails with PHP 7.0.3plg1-4/+4
fix indentation
2016-02-10if php version is less than 7.0.3 and session_id exists do nothingNicolas1-2/+5
2016-02-01fixes #413, force log in with auth key userplegall1-5/+0
2016-01-29fixes #412, warn visitor if auth key no longer validplegall1-0/+1
2016-01-27bug #408 fixed, no session_regenerate_id on early PHP 7 versionsplg1-2/+2
2016-01-16shorten some code (not really important)modus751-1/+1
2016-01-14happy new year 2016, all headers updatedplegall1-1/+1
2016-01-04feature #392, authentication keys, history logplegall1-1/+4
When a user successfully performs an authentication with an auth_key, Piwigo registers it in the history table. For now, it is not shown/searchable in the history screen, but we can add it in the future and we can provide a plugin with specific details about authentication keys usage.
2016-01-01forgotten to give user_status on recursive call in create_user_auth_key, bug ↵plegall1-1/+1
detected by @mistic100
2015-12-31feature #392, authentication keys, album notificationplegall1-0/+132
* 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.
2015-05-15merge r31167 from branch 2.7 to trunkplegall1-1/+1
bug 3223 fixed: make sure we have found a user before validating the connection git-svn-id: http://piwigo.org/svn/trunk@31168 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-05-15bug 3223 fixed: make sure we have found a user before validating the connectionplegall1-1/+1
git-svn-id: http://piwigo.org/svn/branches/2.7@31167 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-30bug 3111: cleaner code for get_browser_language (no more reference as parameter)plegall1-15/+7
git-svn-id: http://piwigo.org/svn/trunk@29840 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-29bug 3111: add comment to help understand the codeplegall1-0/+4
git-svn-id: http://piwigo.org/svn/trunk@29839 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-23bug fixed: register_user can be called with no ['mail_address']plegall1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@29759 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-28bug 3050: increase security on reset password algorithm.plegall1-24/+0
* reset key has a 1-hour life * reset key is automatically deleted once used * reset key is stored as a hash Thank you effigies for code suggestions git-svn-id: http://piwigo.org/svn/trunk@29111 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-25feature 3105: display the link to Piwigo in connection settings notification ↵plegall1-0/+2
email (option on register) git-svn-id: http://piwigo.org/svn/trunk@29075 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-18since number of accepted args not required for add_event_handler, simplify callsrvelices1-6/+6
git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-02feature 3010 : replace trigger_action/event by trigger_notify/changemistic1001-8/+8
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-16more query2array and remove unnecessary tests in often called url functionsrvelices1-12/+8
git-svn-id: http://piwigo.org/svn/trunk@27388 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-04remove PHP < 5.2 codemistic1001-17/+6
git-svn-id: http://piwigo.org/svn/trunk@27158 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05Update headers to 2014. Happy new year!!mistic1001-1/+1
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-12-18feature 1668: escape login and password in registration emailmistic1001-3/+3
git-svn-id: http://piwigo.org/svn/trunk@26028 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-26remove is_adviser() and get_email_address_as_display_text()mistic1001-30/+0
git-svn-id: http://piwigo.org/svn/trunk@25729 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-26feature 2999: documentation of functions_user.inc.php (move two functions to ↵mistic1001-287/+227
functions_category.inc.php) git-svn-id: http://piwigo.org/svn/trunk@25728 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-21Small bug on password hash verification with strpos functionpatdenice1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@25633 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-06feature 2995: New email templatemistic1001-7/+7
restore get_l10n_args removed at r25357 apply changes to NBM git-svn-id: http://piwigo.org/svn/trunk@25360 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-06feature 2995: New email templatemistic1001-7/+7
rewrite pwg_mail_group() and pwg_mail_notification_admins() new function pwg_mail_admins() add complete template management in pwg_mail() TODO : font-size problem in Thunderbird git-svn-id: http://piwigo.org/svn/trunk@25357 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-30feature 1668, user manager redesign: ability to add a new user (call to ↵plegall1-33/+59
pwg.users.add through AJAX) Move the "send connection settings" code to function register_user (avoid code duplication). git-svn-id: http://piwigo.org/svn/trunk@25237 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24bug 2988: register_user() must returns new user id mistic1001-24/+29
git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19replace some mass_updates/inserts by single_update/insertmistic1001-6/+4
git-svn-id: http://piwigo.org/svn/trunk@25019 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-05-26bug 2097: wrong number of sub-albumsrvelices1-78/+47
bug 2098: make number of direct sub-albums available for each user git-svn-id: http://piwigo.org/svn/trunk@22879 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-04-04merge r21236 from branch 2.5 to trunkplegall1-1/+6
bug 2861: avoid "invalid password" with manual upgrade and admin session expired git-svn-id: http://piwigo.org/svn/trunk@22005 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-03-23feature 2557 recent photos/albums should never be emptyrvelices1-9/+22
git-svn-id: http://piwigo.org/svn/trunk@21802 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-03-23db changes for feature 2836 display # of comments/tags in menubar and ↵rvelices1-5/+12
feature 2557 recent photos should never be empty git-svn-id: http://piwigo.org/svn/trunk@21801 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-02-04feature 65: fetch_assoc behaves different with mysql and mysqli. When no rowplegall1-4/+12
is returned, mysql returns bool:false, while mysqli returns null and it was breaking completely the installation process. I have faked the old mysql behavior with mysqli (just for get_default_user_infos function) git-svn-id: http://piwigo.org/svn/trunk@20545 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-20feature:2823 Add triggers for login system mistic1001-0/+16
git-svn-id: http://piwigo.org/svn/trunk@20282 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-01 update Piwigo headers to 2013 (the end of the world didn't occur as ↵plegall1-1/+1
expected on r12922) git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-12-08make sure get_sql_condition_FandF() doesn't generate corrupted SQL codemistic1001-1/+1
git-svn-id: http://piwigo.org/svn/trunk@19333 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-11-02feature 2727: improved backward compatibility with ['pass_convert']plegall1-3/+10
git-svn-id: http://piwigo.org/svn/trunk@18890 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-11-02feature 2727: improve password security with the use of PasswordHash class.plegall1-2/+72
This class performs salt and multiple iterations. Already used in Wordpress, Drupal, phpBB and many other web applications. $conf['pass_convert'] is replaced by $conf['password_hash'] + $conf['password_verify'] git-svn-id: http://piwigo.org/svn/trunk@18889 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-10-12- remove unsed code; shorten existing code and improve readability ...rvelices1-25/+19
git-svn-id: http://piwigo.org/svn/trunk@18629 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-09-23feature 2754: Add "Email" field for user comments + mandatory "Author" mistic1001-9/+5
git-svn-id: http://piwigo.org/svn/trunk@18164 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-18- multisize thumb longest side can be smaller than the square sizervelices1-23/+0
- remove unused css, shorten/optimize php called very often (at least theoretically should be faster) git-svn-id: http://piwigo.org/svn/trunk@13240 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-09- remove square/thumb from choices on picture rvelices1-47/+24
- fix content margin on password register - purge derivative cache by type of derivative - session saved infos/messages are not given to the page on html redirections - shorter/faster code in functions_xxx git-svn-id: http://piwigo.org/svn/trunk@13074 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17update Piwigo headers to 2012, last change before the expected (or not) ↵mistic1001-1/+1
apocalypse git-svn-id: http://piwigo.org/svn/trunk@12922 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16merge r12747 from branch 2.3 to trunkplegall1-2/+8
bug 2534 fixed: clean (as clean as possible with MySQL+MyISAM) handle of concurrency on user cache refresh. No more error when regenerating several thumbnails at once. git-svn-id: http://piwigo.org/svn/trunk@12748 68402e56-0260-453c-a942-63ccdbb3a9ee