Skip to content

Commit bd38202

Browse files
[1.x] Add Features::canUpdatePassword() method (#617)
* Update Features.php * Update Features.php * Update Features.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent aaf3c6a commit bd38202

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Features.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ public static function hasSecurityFeatures()
6161
static::canManageTwoFactorAuthentication();
6262
}
6363

64+
/**
65+
* Determine if the application can update user passwords.
66+
*
67+
* @return bool
68+
*/
69+
public static function canUpdatePasswords()
70+
{
71+
return static::enabled(static::updatePasswords());
72+
}
73+
6474
/**
6575
* Determine if the application can manage two factor authentication.
6676
*

0 commit comments

Comments
 (0)