Add an API to reset the password
This commit is contained in:
		@@ -11,6 +11,7 @@ service Accounts {
 | 
				
			|||||||
  rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
 | 
					  rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
 | 
				
			||||||
  rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
 | 
					  rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
 | 
				
			||||||
  rpc ResetPassword (AccountData) returns (google.protobuf.Empty) {}
 | 
					  rpc ResetPassword (AccountData) returns (google.protobuf.Empty) {}
 | 
				
			||||||
 | 
					  rpc NewPassword (AccountWithPasswordAndCode) returns (google.protobuf.Empty) {}
 | 
				
			||||||
  rpc IsEmailVerified (AccountData) returns (EmailVerified) {}
 | 
					  rpc IsEmailVerified (AccountData) returns (EmailVerified) {}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -39,6 +40,13 @@ message AccountWithPassword {
 | 
				
			|||||||
  AccountPassword password = 2;
 | 
					  AccountPassword password = 2;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					message AccountWithPasswordAndCode {
 | 
				
			||||||
 | 
					  AccountData data = 1;
 | 
				
			||||||
 | 
					  AccountPassword password = 2;
 | 
				
			||||||
 | 
					  string code = 3;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
message AccountFull { 
 | 
					message AccountFull { 
 | 
				
			||||||
  AccountId id = 1;
 | 
					  AccountId id = 1;
 | 
				
			||||||
  AccountData data = 2;
 | 
					  AccountData data = 2;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user