Fixed: only login once

This commit is contained in:
philipp lang 2021-04-09 23:22:35 +02:00
parent b511a91ebe
commit a9a64e61cb
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class NamiServiceProvider extends ServiceProvider
} }
public function register() { public function register() {
$this->app->bind('nami.api', function() { $this->app->singleton('nami.api', function() {
return new Api(); return new Api();
}); });
} }

View File

@ -28,7 +28,7 @@ class NamiUser implements Authenticatable {
} }
public function attemptNamiLogin($password) { public function attemptNamiLogin($password) {
return app(Api::class)->setUser($this)->login($this->mglnr, $password, $this->groupid); return Nami::setUser($this)->login($this->mglnr, $password, $this->groupid);
} }
public function getNamiGroupId() { public function getNamiGroupId() {