mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 09:03:54 -07:00
Simpler forgot password functionality (#2393)
* Simpler forgot password functionality (Server/Client)
This commit is contained in:
parent
b64eab204c
commit
0cfa6863d5
36 changed files with 1190 additions and 173 deletions
|
|
@ -24,6 +24,9 @@ message SessionCommand {
|
|||
ACCOUNT_EDIT = 1018;
|
||||
ACCOUNT_IMAGE = 1019;
|
||||
ACCOUNT_PASSWORD = 1020;
|
||||
FORGOT_PASSWORD_REQUEST = 1021;
|
||||
FORGOT_PASSWORD_RESET = 1022;
|
||||
FORGOT_PASSWORD_CHALLENGE = 1023;
|
||||
REPLAY_LIST = 1100;
|
||||
REPLAY_DOWNLOAD = 1101;
|
||||
REPLAY_MODIFY_MATCH = 1102;
|
||||
|
|
@ -160,3 +163,30 @@ message Command_AccountPassword {
|
|||
optional string old_password = 1;
|
||||
optional string new_password = 2;
|
||||
}
|
||||
|
||||
message Command_ForgotPasswordRequest {
|
||||
extend SessionCommand {
|
||||
optional Command_ForgotPasswordRequest ext = 1021;
|
||||
}
|
||||
required string user_name = 1;
|
||||
optional string clientid = 2;
|
||||
}
|
||||
|
||||
message Command_ForgotPasswordReset {
|
||||
extend SessionCommand {
|
||||
optional Command_ForgotPasswordReset ext = 1022;
|
||||
}
|
||||
required string user_name = 1;
|
||||
optional string clientid = 2;
|
||||
optional string token = 3;
|
||||
optional string new_password = 4;
|
||||
}
|
||||
|
||||
message Command_ForgotPasswordChallenge {
|
||||
extend SessionCommand {
|
||||
optional Command_ForgotPasswordChallenge ext = 1023;
|
||||
}
|
||||
required string user_name = 1;
|
||||
optional string clientid = 2;
|
||||
optional string email = 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue