mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
order of init
This commit is contained in:
parent
c098d002c8
commit
fd160aaba7
1 changed files with 2 additions and 1 deletions
|
|
@ -14,8 +14,8 @@ class AuthManager{
|
||||||
|
|
||||||
this.configs = configs ?? (new AuthConfig()).loadConfig()
|
this.configs = configs ?? (new AuthConfig()).loadConfig()
|
||||||
this.addModules()
|
this.addModules()
|
||||||
this.registerAuths()
|
|
||||||
this.simpleregister = userModel;
|
this.simpleregister = userModel;
|
||||||
|
this.registerAuths()
|
||||||
}
|
}
|
||||||
|
|
||||||
getUserModel(){
|
getUserModel(){
|
||||||
|
|
@ -41,6 +41,7 @@ class AuthManager{
|
||||||
}
|
}
|
||||||
|
|
||||||
async registerAuths(){
|
async registerAuths(){
|
||||||
|
console.log(``);
|
||||||
for(const module of this.modules){
|
for(const module of this.modules){
|
||||||
try{
|
try{
|
||||||
module.registerAuth(this.app, this.simpleregister);
|
module.registerAuth(this.app, this.simpleregister);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue