Difference between revisions of "Extensions:User Username Changes"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Add notice about `attempt to read property "updated_at" on null` bug)
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 19: Line 19:
 
== Troubleshooting ==
 
== Troubleshooting ==
 
If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!
 
If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!
 +
 
'''Potential Issues & Solutions:'''
 
'''Potential Issues & Solutions:'''
 +
 
<code>Attempt to read property "updated_at" on null</code> when changing a username for the first time.
 
<code>Attempt to read property "updated_at" on null</code> when changing a username for the first time.
 
* If you last pulled the branch before May 24<sup>th</sup>, you need to repull the branch. Afterwards, push the updates and the issue should be resolved!
 
* If you last pulled the branch before May 24<sup>th</sup>, you need to repull the branch. Afterwards, push the updates and the issue should be resolved!

Revision as of 15:36, 24 May 2023

User Username Changes
Description Allows users to change their usernames without staff assistance.
Author(s) AnimatedCritter
Status stable
Github extension/user-username-changes
LK Version 2.1.0
Contains a Migration






This extension allows users to change their usernames. It also introduces a username log to keep track of all name changes, as well as a username cooldown. Staff can bypass the cooldown via the user index panel (/admin/users), if need-be.

Installation

Pull and merge the branch, making sure to address any merge issues.

Afterwards, run the following commands in your console:

php artisan migrate

php artisan add-site-settings

php artisan update-extension-tracker

Configuration

username_change_cooldown

  • Determines how many days a user must wait before being able to change their username again.
  • By default, this is set to 30 days.
  • To set no cooldown, change this value to 0.

Troubleshooting

If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!

Potential Issues & Solutions:

Attempt to read property "updated_at" on null when changing a username for the first time.

  • If you last pulled the branch before May 24th, you need to repull the branch. Afterwards, push the updates and the issue should be resolved!

Images

Screenshot 2023-05-02 120009.png