-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Well, I'm the only one using the login forms on this site but still wanted to try these. - Raise min length to 15 chars - Help password managers understand the form fields - Indicate which account is the password being changed for - Tell 1Password to generate a bit longer+stronger password by default TIL the `passwordrules` attribute thanks to this great @ScottHelme's blog post https://scotthelme.co.uk/boosting-account-security-pwned-passwords-and-zxcvbn/ Here are some helpful links: - [Design your website to work best with 1Password](https://developer.1password.com/docs/web/compatible-website-design/) - [Password Rules Validation Tool](https://developer.apple.com/password-rules/) by Apple, apparently supported in Safari [since 2018 (Safari 12)](https://webkit.org/blog/8327/safari-technology-preview-58-with-safari-12-features-is-now-available/) - whatwg/html#3518 _This is a companion to #89._
- Loading branch information
Showing
4 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
site/app/User/Exceptions/IdentityNotSimpleIdentityException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace MichalSpacekCz\User\Exceptions; | ||
|
||
use Exception; | ||
use Nette\Security\IIdentity; | ||
use Nette\Security\SimpleIdentity; | ||
use Throwable; | ||
|
||
class IdentityNotSimpleIdentityException extends Exception | ||
{ | ||
|
||
public function __construct(?IIdentity $identity, ?Throwable $previous = null) | ||
{ | ||
parent::__construct( | ||
sprintf('Identity is of class %s but should be %s', $identity === null ? '<null>' : $identity::class, SimpleIdentity::class), | ||
previous: $previous, | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters