Commit graph

248 commits

Author SHA1 Message Date
Linty
cc675b712b fixes #2327 standardize password masking length in emails 2025-02-24 13:48:38 +01:00
plegall
28a676b2d9 fixes #2311 single instance of user_cache generation 2025-01-10 10:59:56 +01:00
Linty
8f721fcb8b fixes #2303 replace the password in clear text with asterisks 2025-01-06 16:21:41 +01:00
Linty
6e45a8f426 fixes #2281 use template for reset/activation mail
and change is_first_connection to has_already_logged_in for better naming
2024-11-20 21:06:02 +01:00
Linty
f6a3d0749f fixes #2281 rename function for better clarity
first_connexion to is_first_connection
2024-11-20 18:09:02 +01:00
Linty
34296598d4 fixes #2281 add two default conf for reset and activation link
When a password activation or reset link is generated, the link expiry time is now defined in two conf: $conf[’password_reset_duration‘] with a default time of one hour and $conf[’password_activation_duration‘] with a default time of 72 hours.
2024-11-20 17:09:26 +01:00
Linty
431cb4b7b4 fixes #1152 unset last_visit columns from default_user 2024-11-19 17:17:01 +01:00
plegall
3ee277f8e0 fixes #171 ability to filter user list on a specific user 2024-08-21 12:11:27 +02:00
Linty
c8d7503d4e related to #2165 new add user popin
- add field for add user
- in the `pwg.users.add` method, the params `send_password_by_mail` does nothing anymore. Because we no longer want to send passwords in clear text.
- in the `pwg.users.add` add a new `auto_password` parameter to generate a random password when a user is created
- use this parameter (`auto_password`) in user_list.js
- change mail content et password page on first login
2024-06-28 18:56:28 +02:00
Linty
27cd5cde9e related to #2158 update user and guest pop in
- Implementation of a new modal for modifying a user or guest
- Addition of a function to allow plugins to add a tab to the new user modal
- Fix bug: "badger-number" is updated when a user is added or deleted
- Fix bug: When the user who is editing has permissions to delete the user he is modifying, the delete icon is now displayed correctly
- Added a new api method for modifying the main user and generating a link to reset a password
- Passed $conf[‘webmaster_id’] in database configuration
2024-05-31 18:12:52 +02:00
plegall
4b33001c15 fixes #1902 ability to set a specific group to notify user registrations 2023-04-22 17:21:29 +02:00
Matthieu Leproux
32ea1aef53 fixed #1802 fixed double escape for user creation, album creation and comments 2022-11-22 16:01:43 +01:00
Matthieu Leproux
f7e44cc14e related to #1767 changed the way 9d5cba0 is done 2022-10-26 12:53:35 +02:00
Matthieu Leproux
9d5cba0096 fix #1767 Solved php warning and user creation works as is should 2022-10-25 10:05:23 +02:00
Arnie97
9b22164adc fixes #680, #875 and #1028: improve detection for browser preferred languages 2022-09-21 16:43:05 +02:00
plegall
c2f8238e16 issue #1640 user preferences 2022-03-31 18:16:23 +02:00
plegall
444c653878 fixes #1368 user with "guest" status get refused connection 2021-05-05 17:03:19 +02:00
plegall
7d7943b3ed fixes #1275 delete password reset key when email address is changed 2020-12-22 15:04:30 +01:00
Maxime BOURMAUD
32ff00caec
Feature#765 now it's possible to login with your email address (#770)
First we check for the username, if not found we check among email addresses.
2020-09-30 10:51:29 +02:00
plegall
40182f7774 fixes #1120 check installed theme on its identifier (=directory name), not on its display name 2020-04-30 11:32:52 +02:00
Sam
10962c9208
Fix version comparison for session ID regen (#1178)
session_regenerate_id : as planned back in 2016, remove PHP version check entirely.

... and let's see if it still is a problem on recent PHP versions.
2020-04-23 12:51:35 +02:00
Rasmus Lerdorf
f62ee77852 Fix count() warning
In PHP 7.2 and later you will get a warning if you call count() on null. So either initialize $errors to an empty array here, or use empty() to check it as I have done here.
2019-12-16 10:50:14 +01:00
Sam Wilson
7b6912ba98 Use default theme if loaded one is not found
When loading a user's theme, make sure it's installed. Also, when
determining the default theme, account for the situation in which
zero themes are installed (and use 'default' then).

Refs #1061
2019-08-14 12:18:45 +02:00
plegall
c1eecab364 fixes #996 escape word "groups" in SQL queries, new reserved word with MySQL 8 2019-06-28 18:07:53 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
940d1d2e8c issue #552
* many more admin actions are logged into activity table
* use the activity.details as an associative array (serialized in database)
2019-04-01 16:19:09 +02:00
Teatek
beec234478 fixes #958 : protect fields before copying properties from default user to new user 2019-01-27 16:52:15 +01:00
plegall
a9fa61adfe Merge branch '2.8' 2016-10-20 10:43:41 +02:00
plegall
25d2305839 fixes #542, do not always use browser language on register 2016-10-20 10:14:28 +02:00
plegall
4560e2d824 fixes #478, add new column user_infos.last_visit
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-05-31 16:00:03 +02:00
plegall
c451470ad4 typo fixed 2016-02-12 20:22:20 +01:00
plegall
fbd90fa460 fixes #414, deactivate auth keys on password change 2016-02-12 20:20:12 +01:00
plg
08fe998dd1 session_regenerate_id() still fails with PHP 7.0.3
fix indentation
2016-02-10 15:19:40 +01:00
Nicolas
0909717c37 if php version is less than 7.0.3 and session_id exists do nothing 2016-02-10 12:37:12 +01:00
plegall
2fcf276811 fixes #413, force log in with auth key user 2016-02-01 10:05:33 +01:00
plegall
a12425629e fixes #412, warn visitor if auth key no longer valid 2016-01-29 12:44:38 +01:00
plg
f04e4d8b4f bug #408 fixed, no session_regenerate_id on early PHP 7 versions 2016-01-27 15:36:00 +01:00
modus75
4bf51fc8e0 shorten some code (not really important) 2016-01-16 17:20:43 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
f2f9e5ecb7 feature #392, authentication keys, history log
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-04 15:04:02 +01:00
plegall
f4040a5a3a forgotten to give user_status on recursive call in create_user_auth_key, bug detected by @mistic100 2016-01-01 20:37:33 +01:00
plegall
4aeedb5a2e 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.
2015-12-31 19:59:08 +01:00
plegall
e520cf8389 merge r31167 from branch 2.7 to trunk
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-15 12:45:50 +00:00
plegall
18f045bf35 bug 3111: cleaner code for get_browser_language (no more reference as parameter)
git-svn-id: http://piwigo.org/svn/trunk@29840 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-30 08:23:34 +00:00
plegall
7e5722ce78 bug 3111: add comment to help understand the code
git-svn-id: http://piwigo.org/svn/trunk@29839 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-29 20:55:00 +00:00
plegall
3ef5464b26 bug fixed: register_user can be called with no ['mail_address']
git-svn-id: http://piwigo.org/svn/trunk@29759 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-23 08:37:16 +00:00
plegall
87a30ff064 bug 3050: increase security on reset password algorithm.
* 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-28 19:27:50 +00:00
plegall
b97fcf2a22 feature 3105: display the link to Piwigo in connection settings notification email (option on register)
git-svn-id: http://piwigo.org/svn/trunk@29075 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-25 12:40:34 +00:00
rvelices
3c13387dfd since number of accepted args not required for add_event_handler, simplify calls
git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-18 19:51:42 +00:00
mistic100
4bd32005b5 feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-02 07:55:46 +00:00