mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-28 21:37:31 +01:00
fix typo preventing template condition to work
This commit is contained in:
@@ -263,7 +263,7 @@ func GetAuthInstance() *Authentication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handleUserSync syncs or updates a user in the database based on configuration.
|
// handleUserSync syncs or updates a user in the database based on configuration.
|
||||||
// This is used for both JWT and OIDC authentication when syncUserOnLogin or updateUserOnLogin is enabled.
|
// This is used for LDAP, JWT and OIDC authentications when syncUserOnLogin or updateUserOnLogin is enabled.
|
||||||
func handleUserSync(user *schema.User, syncUserOnLogin, updateUserOnLogin bool) {
|
func handleUserSync(user *schema.User, syncUserOnLogin, updateUserOnLogin bool) {
|
||||||
r := repository.GetUserRepository()
|
r := repository.GetUserRepository()
|
||||||
dbUser, err := r.GetUser(user.Username)
|
dbUser, err := r.GetUser(user.Username)
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
<input class="form-control" type="password" id="password" name="password" required/>
|
<input class="form-control" type="password" id="password" name="password" required/>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-success">Submit</button>
|
<button type="submit" class="btn btn-success">Submit</button>
|
||||||
{{- if .Infos.hasOpenIDConnect}}
|
{{if .Infos.hasOpenIDConnect}}
|
||||||
<a class="btn btn-primary" href="/oidc-login">OpenID Connect Login</a>
|
<a class="btn btn-primary" href="/oidc-login">OpenID Connect Login</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<input type="hidden" id="redirect" name="redirect" value="{{ .Redirect }}" />
|
<input type="hidden" id="redirect" name="redirect" value="{{ .Redirect }}" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user