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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 2 commits into from

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.

This is a prerequisite for
DarkstarProject/xiloader#7.

There is probably some refactoring that could be done in this file to
reduce the amount of nested braces and reduce duplicated code. I tried
to touch as little existing code as possible in this change to reduce
the risk of introducing a regression.
@mrhappyasthma
Copy link
Contributor Author

Let me know what folks think of this change.

@mrhappyasthma
Copy link
Contributor Author

mrhappyasthma commented Jan 12, 2020

Here's how things look on the xiloader side: mrhappyasthma/xiloader@6360501

@TeoTwawki
Copy link
Member

I'll get with you in a bit so we can launch the changes to the loader at the same time

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.

None yet

2 participants