Browse Source

add ResetByEmail

yokyo 5 năm trước cách đây
mục cha
commit
5378159c4a
1 tập tin đã thay đổi với 13 bổ sung3 xóa
  1. 13 3
      login.proto

+ 13 - 3
login.proto

@@ -68,14 +68,24 @@ message M_Login {
 /// 邮箱重置密码
 /// 邮箱重置密码后, 用户邮箱会收到一个 url,在该 url 页面重置密码,
 /// 再走登录流程
-message L_ResetByEmail {
+message L_TryResetByEmail {
     string email    = 1;
     int64 ts        = 2;
     string hash     = 5;
 }
 
-message M_ResetByEmail {
+message M_TryResetByEmail {
     int32 ec        = 1;
     string email    = 3;
 }
-// 这里隐含一个重置密码的 web 页面
+// 这里隐含一个重置密码的 web 页面
+
+// 重置请求
+message L_ResetByEmail {
+    string email    = 1;
+    string password = 2;
+}
+
+message M_ResetByEmail {
+    int32 ec        = 1;
+}