@@ -9,7 +9,13 @@ func GenerateLoginInfo(Form *srunTransfer.LoginForm, Meta *srunTransfer.LoginMet
|
|||||||
return &srunModels.LoginInfo{
|
return &srunModels.LoginInfo{
|
||||||
Meta: Meta,
|
Meta: Meta,
|
||||||
Form: &srunTransfer.LoginForm{
|
Form: &srunTransfer.LoginForm{
|
||||||
UserName: Form.UserName + "@" + Form.UserType,
|
UserName: func() string {
|
||||||
|
if Form.UserType == "" {
|
||||||
|
return Form.UserName
|
||||||
|
} else {
|
||||||
|
return Form.UserName + "@" + Form.UserType
|
||||||
|
}
|
||||||
|
}(),
|
||||||
PassWord: Form.PassWord,
|
PassWord: Form.PassWord,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user