fix: spelling

This commit is contained in:
Tao Chen
2024-10-29 23:00:17 +08:00
parent 17305b6a6f
commit 9eff8ea33a
3 changed files with 7 additions and 7 deletions

View File

@@ -224,9 +224,9 @@ func (us *UserService) RegisterByGoogle(name string, email string) *model.User {
return us.RegisterByOauth(model.OauthTypeGoogle, name, email)
}
// RegisterByOidc 注册, use prefferedUsername as username, sub as openid
func (us *UserService) RegisterByOidc(prefferedUsername string, sub string) *model.User {
return us.RegisterByOauth(model.OauthTypeOidc, prefferedUsername, sub)
// RegisterByOidc 注册, use PreferredUsername as username, sub as openid
func (us *UserService) RegisterByOidc(PreferredUsername string, sub string) *model.User {
return us.RegisterByOauth(model.OauthTypeOidc, PreferredUsername, sub)
}
// RegisterByOauth 注册