aiarena / aiarena-web

A website for running the aiarena.net ladder.
https://aiarena.net
GNU General Public License v3.0
93 stars 16 forks source link

Add in functionality to change username after registration #394

Open Pagwin-Fedora opened 2 years ago

Pagwin-Fedora commented 2 years ago

sorry if this is a duplicate but having to ask an admin for this is dumb

lladdy commented 2 years ago

@Pagwin-Fedora is this purely just the display name you want to be able to change? Or the name used to log into the website as well?

Potentially we could switch to using the email as the login and have the username be display only.

Pagwin-Fedora commented 2 years ago

@lladdy I think having both changeable makes sense and it should be possible to change the email as well if it isn't easily changeable already.

I think that both the display name and email should work as login names however between the two I think having email as login name would be better

Marsh-sudo commented 1 year ago

If no one is assigned give it to me.....i have an idea of what to do

lladdy commented 1 year ago

Thanks @Marsh-sudo - I've assigned this to you :)

Marsh-sudo commented 1 year ago

Kindly help me know which folder holds user authentication and everything in regards of signup,login and user profile cause am getting lost in your folder structure....kindly

lladdy commented 1 year ago

Hi @Marsh-sudo

All the frontend view code is here: https://github.com/aiarena/aiarena-web/blob/staging/aiarena/frontend/views.py External dependencies (such as django) manage most of the signup and authentication functionality.

Here is the relevant profile edit page code: Django Template: https://github.com/aiarena/aiarena-web/blob/staging/aiarena/frontend/templates/profile_edit.html UserProfileUpdate View: https://github.com/aiarena/aiarena-web/blob/debfe993f1f2936c22ff643c1010b3fb67e52192/aiarena/frontend/views.py#L166 URL definition: https://github.com/aiarena/aiarena-web/blob/staging/aiarena/urls.py#L99

You'll need to understand how Django views work in order to update the code.