mirror of
https://github.com/balzack/databag.git
synced 2025-04-22 09:35:16 +00:00
support global server push setting
This commit is contained in:
parent
b40008517b
commit
8f4c15d5da
@ -50,6 +50,7 @@ func AddAccountApp(w http.ResponseWriter, r *http.Request) {
|
||||
login := LoginAccess{
|
||||
GUID: account.GUID,
|
||||
AppToken: account.GUID + "." + access,
|
||||
PushSupported: getBoolConfigValue(CNFPushSupported, true),
|
||||
}
|
||||
|
||||
// save app and delete token
|
||||
|
@ -6,6 +6,9 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
//CNFPushSupported for allowing push notifications
|
||||
const CNFPushSupported = "push_notifications"
|
||||
|
||||
//CNFOpenAccess for allowing for public account creation
|
||||
const CNFOpenAccess = "open_access"
|
||||
|
||||
|
@ -330,6 +330,8 @@ type LoginAccess struct {
|
||||
AppToken string `json:"appToken"`
|
||||
|
||||
Created int64 `json:"created"`
|
||||
|
||||
PushSupported bool `json:"pushSupported"`
|
||||
}
|
||||
|
||||
//NodeConfig node configuration values
|
||||
|
Loading…
x
Reference in New Issue
Block a user