mirror of
https://github.com/h44z/wg-portal.git
synced 2026-04-19 14:06:19 +00:00
create default peers for newly created interfaces (#666)
This commit is contained in:
@@ -270,6 +270,18 @@ func (u *User) DisplayName() string {
|
||||
return displayName
|
||||
}
|
||||
|
||||
// CreateDefaultPeers determines whether default peers should be created for this user.
|
||||
func (u *User) CreateDefaultPeers() bool {
|
||||
if u.IsDisabled() {
|
||||
return false
|
||||
}
|
||||
if u.IsLocked() {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
// region webauthn
|
||||
|
||||
func (u *User) WebAuthnID() []byte {
|
||||
|
||||
Reference in New Issue
Block a user