mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -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
|
|
@ -119,6 +119,7 @@ SET(PROTO_FILES
|
|||
response_deck_list.proto
|
||||
response_deck_upload.proto
|
||||
response_dump_zone.proto
|
||||
response_forgotpasswordrequest.proto
|
||||
response_get_games_of_user.proto
|
||||
response_get_user_info.proto
|
||||
response_join_room.proto
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ message Response {
|
|||
WARN_HISTORY = 1013;
|
||||
WARN_LIST = 1014;
|
||||
VIEW_LOG = 1015;
|
||||
FORGOT_PASSWORD_REQUEST = 1016;
|
||||
REPLAY_LIST = 1100;
|
||||
REPLAY_DOWNLOAD = 1101;
|
||||
}
|
||||
|
|
|
|||
9
common/pb/response_forgotpasswordrequest.proto
Normal file
9
common/pb/response_forgotpasswordrequest.proto
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "response.proto";
|
||||
|
||||
message Response_ForgotPasswordRequest {
|
||||
extend Response {
|
||||
optional Response_ForgotPasswordRequest ext = 1016;
|
||||
}
|
||||
optional bool challenge_email = 1;
|
||||
}
|
||||
|
|
@ -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