Skip to content

Added a username reminder for admins - #1122

Open
lwcorp wants to merge 12 commits into
phpList:release-3.7.0from
lwcorp:username-reminder
Open

Added a username reminder for admins#1122
lwcorp wants to merge 12 commits into
phpList:release-3.7.0from
lwcorp:username-reminder

Conversation

@lwcorp

@lwcorp lwcorp commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Description

Although password reminder insecurely mentions the username, it does it without using the word "username", but either way there should be an independent username reminder without the possibility to accidentally modify the database and change the password.

As a side fix, the e-mail field was defined as text rather than email.

All of this was done by adding support in:

  1. Frontend
  2. Backend
  3. E-mail itself

I didn't duplicate public_html/lists/admin/tests/subscriber_password.php since it's meant for end-users while this task is for admins.

Note this requires the following new translations:

For public_html/lists/admin/tests/admin/index.php:

  1. Failed sending a username reminder

For public_html/lists/admin/tests/admin/lib.php:

  1. You have requested a username reminder for phpList.
  2. Your username is:
  3. Username reminder
  4. A username reminder has been sent to the corresponding email address.
  5. Error sending user reminder

For public_html/lists/admin/tests/admin/login.php:

  1. Forgot username
  2. Enter your email address
  3. Send username

Related Issue

N/A

Screenshots (if appropriate):

Username reminder

sandholzerk and others added 5 commits May 5, 2026 10:31
Currently the new version ist not recognised when upgrading. This results that no database-upgrade is initiated.
The program worked perfectly without this, it's just for correctness. :)
1. Fixed field type
1. Added fields to enter address and get a username reminder
To avoid conflict with phplist/admin/ui/phplist-ui-bootlist/css/style.css margin-top: 30px (this theme wasn't updated in years)
Modeled on function sendAdminPasswordToken
Added fields and infrastructure to allow sending a username reminder
@lwcorp

lwcorp commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Note the checks failed due to #1123.

Co-authored-by: Tatevik <tatevikg1@gmail.com>
@TatevikGr

Copy link
Copy Markdown
Contributor

Note the checks failed due to #1123.

@lwcorp Please pull the latest changes from phpList:main. The workflow has been fixed on the main branch

@michield
michield self-requested a review August 9, 2026 11:11
@phpListDockerBot

Copy link
Copy Markdown
Contributor

I tried this and it seems to work. Could you change the target branch to be release-3..7.0 so that it can be merged into that one? Thanks

michield and others added 3 commits August 11, 2026 07:19
# Conflicts:
#	.github/workflows/build-release.yml
#	.github/workflows/main.yml
#	VERSION
#	public_html/lists/admin/admins.php
#	public_html/lists/admin/bouncerules.php
#	tests/features/bootstrap/FeatureContext.php
…ated and may be removed in a future version"
* Translated using Weblate (English)

Currently translated at 91.4% (1950 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/en/

* Translated using Weblate (French)

Currently translated at 99.8% (2128 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/fr/

* Translated using Weblate (Czech)

Currently translated at 96.7% (2062 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (Czech)

Currently translated at 96.7% (2062 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/cs/

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/

* Translated using Weblate (Czech)

Currently translated at 97.7% (2083 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (Czech)

Currently translated at 97.7% (2085 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (test (generated) (test))

Currently translated at 12.9% (276 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/test/

* Translated using Weblate (Czech)

Currently translated at 97.8% (2086 of 2132 strings)

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/cs/

* remove obsolete files

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/

* Translated using Weblate (Czech)

Currently translated at 97.8% (2121 of 2167 strings)

Translation: phpList/phpList3
Translate-URL: https://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (Czech)

Currently translated at 97.8% (2121 of 2167 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (Czech)

Currently translated at 97.9% (2122 of 2167 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/cs/

* Translated using Weblate (French)

Currently translated at 100.0% (2167 of 2167 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/fr/

* Translated using Weblate (French)

Currently translated at 100.0% (2167 of 2167 strings)

Translation: phpList/phpList3
Translate-URL: http://translate.phplist.org/projects/phplist/phplist3/fr/

---------

Co-authored-by: Duncan Cameron <phplist@dcameron.me.uk>
Co-authored-by: Alain Rihs <alainrihs@sunrise.ch>
Co-authored-by: Weblate Admin <ovsenak@seznam.cz>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: user1365 <martin@phplist.com>
Co-authored-by: contact@spnt.org <contact@spnt.org>
@lwcorp
lwcorp changed the base branch from main to release-3.7.0 August 12, 2026 22:07
@michield

Copy link
Copy Markdown
Member

Thanks for changing the target branch. Can you also rebase on main?

It would be nice if I can do that, but unfortunately I can't

@lwcorp

lwcorp commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for changing the target branch. Can you also rebase on main?

It would be nice if I can do that, but unfortunately I can't

This feels like a quest. I've just synced my fork, is that what you meant?

Meanwhile, this time most checks failed due to #1136.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants