feat: 修改密码增加密码登录选项
This commit is contained in:
+13
-13
@@ -1995,11 +1995,11 @@ func (x *UpdateReq) GetRealName() string {
|
||||
}
|
||||
|
||||
type PasswordReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PasswordReq) Reset() {
|
||||
@@ -2032,16 +2032,16 @@ func (*PasswordReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{31}
|
||||
}
|
||||
|
||||
func (x *PasswordReq) GetOldPassword() string {
|
||||
func (x *PasswordReq) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.OldPassword
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PasswordReq) GetPassword() string {
|
||||
func (x *PasswordReq) GetConfirmPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
return x.ConfirmPassword
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -2405,10 +2405,10 @@ const file_user_user_proto_rawDesc = "" +
|
||||
"\x06gender\x18\x03 \x01(\rR\x06gender\x12\x1a\n" +
|
||||
"\bbirthday\x18\x04 \x01(\tR\bbirthday\x12\x16\n" +
|
||||
"\x06mobile\x18\x05 \x01(\tR\x06mobile\x12\x1b\n" +
|
||||
"\treal_name\x18\x06 \x01(\tR\brealName\"L\n" +
|
||||
"\vPasswordReq\x12!\n" +
|
||||
"\fold_password\x18\x01 \x01(\tR\voldPassword\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"V\n" +
|
||||
"\treal_name\x18\x06 \x01(\tR\brealName\"T\n" +
|
||||
"\vPasswordReq\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12)\n" +
|
||||
"\x10confirm_password\x18\x03 \x01(\tR\x0fconfirmPassword\"V\n" +
|
||||
"\tClientReq\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04type\x18\x02 \x01(\tR\x04type\x12!\n" +
|
||||
|
||||
Reference in New Issue
Block a user