Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Add a simple flow to allow changing user passwords. #379

Merged
merged 2 commits into from
Mar 12, 2020
Merged

Add a simple flow to allow changing user passwords. #379

merged 2 commits into from
Mar 12, 2020

Conversation

mrhappyasthma
Copy link
Contributor

This is a prerequisite for DarkstarProject/xiloader#7.

This change adds support for a new command in the login code to support
changing a users password. It simply verifies the users login similarly
to the existing flow, and then makes another request over the socket for
the new password. Then it updates the SQL.

Tested locally. Have a set of changes ready for xiloader as well, but
this work is required first.

NOTE: There is definitely some refactoring that could be done in this
file to reduce the amount of nested braces and to reduce duplicated code.
I tried to touch as little existing code as possible in this change to
reduce the risk of introducing a regression.

I affirm:

  • that I agree to Project Topaz's Limited Contributor License Agreement, as written on this date
  • that I've tested my code since the last commit in the PR, and will test after any later commits

This is a prerequisite for
DarkstarProject/xiloader#7.

This change adds support for a new command in the login code to support
changing a users password. It simply verifies the users login similarly
to the existing flow, and then makes another request over the socket for
the new password. Then it updates the SQL.

Tested locally. Have a set of changes ready for xiloader as well, but
this work is required first.

NOTE: There is definitely some refactoring that could be done in this
file to reduce the amount of nested braces and to reduce duplicated code.
I tried to touch as little existing code as possible in this change to
reduce the risk of introducing a regression.
src/login/login_auth.cpp Outdated Show resolved Hide resolved
src/login/login_auth.cpp Show resolved Hide resolved
@ibm2431 ibm2431 changed the base branch from master to change-password March 12, 2020 22:40
@zircon-tpl zircon-tpl merged commit b8bb54a into project-topaz:change-password Mar 12, 2020
@mrhappyasthma mrhappyasthma deleted the passwordchange branch March 12, 2020 23:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants