Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 1c0f498

Browse files
committed
Remove schema check for password column
- Closes #450
1 parent ebb79a9 commit 1c0f498

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ To use Adldap2-Laravel, your application and server must meet the following requ
2424
* [Installation](#installation)
2525
* [Usage](#usage)
2626
* Auth Driver
27-
* [Upgrading](docs/auth.md#upgrading-from-3-to-4)
28-
* [Quick Start - From Scratch](docs/quick-start.md)
2927
* [Installation & Basic Setup](docs/auth.md#installation)
28+
* [Quick Start - From Scratch](docs/quick-start.md)
29+
* [Upgrading](docs/auth.md#upgrading-from-3-to-4)
3030
* Features
3131
* [Providers](docs/auth.md#providers)
3232
* [Scopes](docs/auth.md#scopes)

src/Commands/SyncPassword.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Support\Str;
66
use Illuminate\Support\Facades\Hash;
77
use Illuminate\Support\Facades\Config;
8-
use Illuminate\Support\Facades\Schema;
98
use Illuminate\Database\Eloquent\Model;
109

1110
class SyncPassword
@@ -94,15 +93,13 @@ protected function passwordNeedsUpdate($password = null) : bool
9493
}
9594

9695
/**
97-
* Determines if the database schema contains a password column.
96+
* Determines if the developer has configured a password column.
9897
*
9998
* @return bool
10099
*/
101100
protected function hasPasswordColumn() : bool
102101
{
103-
$column = $this->column();
104-
105-
return $column ? Schema::hasColumn($this->model->getTable(), $column) : false;
102+
return $this->column() ?: false;
106103
}
107104

108105
/**

0 commit comments

Comments
 (0)