mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-09-23 00:30:43 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f29c915fc2 | ||
|
|
5f8579bfda |
@@ -430,7 +430,7 @@ export const Settings = () => {
|
||||
updatedAccount.data.settings.jwt_groups_claim_name,
|
||||
groups_propagation_enabled:
|
||||
updatedAccount.data.settings.groups_propagation_enabled,
|
||||
peer_approval_enabled: updatedAccount.data.settings.extra.peer_approval_enabled
|
||||
peer_approval_enabled: updatedAccount.data.settings.extra? updatedAccount.data.settings.extra.peer_approval_enabled : false,
|
||||
} as FormAccount;
|
||||
setFormAccount(fAccount);
|
||||
} else if (updatedAccount.error) {
|
||||
@@ -481,12 +481,15 @@ export const Settings = () => {
|
||||
};
|
||||
|
||||
const createAccountToSave = (values: FormAccount): Account => {
|
||||
let peer_login_expiration = values.peer_login_expiration_formatted? expiresInToSeconds(
|
||||
values.peer_login_expiration_formatted
|
||||
) : accounts[0].settings.peer_login_expiration;
|
||||
|
||||
|
||||
let accountToSave = {
|
||||
id: formAccount.id,
|
||||
settings: {
|
||||
peer_login_expiration: expiresInToSeconds(
|
||||
values.peer_login_expiration_formatted
|
||||
),
|
||||
peer_login_expiration: peer_login_expiration,
|
||||
peer_login_expiration_enabled: values.peer_login_expiration_enabled,
|
||||
jwt_groups_enabled: jwtGroupsEnabled,
|
||||
jwt_groups_claim_name: jwtGroupsClaimName,
|
||||
|
||||
Reference in new issue
Block a user