mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PHP's str_ends_with() only accepts a string needle, not an array. The username validation was passing an array of extensions which caused a TypeError on every registration attempt. Replace with a loop over a configurable array of disallowed extensions, making it easy to add new entries. Also updates RegisterTest to properly test the registration flow including the RT anti-bot token and age verification fields. |
4 weeks ago | |
|---|---|---|
| .. | ||
| LoginTest.php | ||
| PasswordConfirmationTest.php | ||
| PasswordResetTest.php | ||
| RegisterTest.php | ||
| TwoFactorTest.php | ||