fix: JSON fields handling for MariaDB
This commit is contained in:
1 parent
a8c7710412
commit
b1dd54768f
35 files changed
+447
-35
No files matched your search
@@ -22,14 +22,15 @@ module.exports = class Authentication extends Model {
|
||||
properties: {
|
||||
key: {type: 'string'},
|
||||
isEnabled: {type: 'boolean'},
|
||||
config: {type: 'object'},
|
||||
selfRegistration: {type: 'boolean'},
|
||||
domainWhitelist: {type: 'object'},
|
||||
autoEnrollGroups: {type: 'object'}
|
||||
selfRegistration: {type: 'boolean'}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static get jsonAttributes() {
|
||||
return ['config', 'domainWhitelist', 'autoEnrollGroups']
|
||||
}
|
||||
|
||||
static async getStrategy(key) {
|
||||
return WIKI.models.authentication.query().findOne({ key })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user