Fixed: only login once
This commit is contained in:
parent
b511a91ebe
commit
a9a64e61cb
|
@ -16,7 +16,7 @@ class NamiServiceProvider extends ServiceProvider
|
|||
}
|
||||
|
||||
public function register() {
|
||||
$this->app->bind('nami.api', function() {
|
||||
$this->app->singleton('nami.api', function() {
|
||||
return new Api();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class NamiUser implements Authenticatable {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue