chore(auth): add oidc suffix to openid team name in db

Related to #2150
This commit is contained in:
kolaente 2024-03-02 15:23:19 +01:00
parent 4f1f96f1e9
commit fc4303a778
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
>
<router-link :to="{name: 'teams.edit', params: {id: t.id}}">
<p>
{{ t.name + (t.oidcId ? ` (sso: ${t.oidcId})`: '') }}
{{ t.name }}
</p>
</router-link>
</li>

View File

@ -331,7 +331,7 @@ func getTeamDataFromToken(groups []map[string]interface{}, provider *Provider) (
func CreateOIDCTeam(s *xorm.Session, teamData *models.OIDCTeam, u *user.User) (team *models.Team, err error) {
team = &models.Team{
Name: teamData.TeamName,
Name: teamData.Name + "(OIDC)",
Description: teamData.Description,
OidcID: teamData.OidcID,
}