mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-18 02:07:53 -05:00
* Keep the user on login page on failure * Show an error if username already exists * Check the password format in the backend * Return a better message if username is invalid * Add a title to the login page * wip: Improve look of login and register pages * Set a capital M in username help message On the registration page, username tip started with a minuscule, while the password tip started with a capital. * Change message if username is taken
28 lines
538 B
PHP
28 lines
538 B
PHP
<?php
|
|
|
|
class FreshRSS_password_UtilTest extends PHPUnit\Framework\TestCase {
|
|
public function testCheck() {
|
|
$password = '1234567';
|
|
|
|
$ok = FreshRSS_password_Util::check($password);
|
|
|
|
$this->assertTrue($ok);
|
|
}
|
|
|
|
public function testCheckReturnsFalseIfEmpty() {
|
|
$password = '';
|
|
|
|
$ok = FreshRSS_password_Util::check($password);
|
|
|
|
$this->assertFalse($ok);
|
|
}
|
|
|
|
public function testCheckReturnsFalseIfLessThan7Characters() {
|
|
$password = '123456';
|
|
|
|
$ok = FreshRSS_password_Util::check($password);
|
|
|
|
$this->assertFalse($ok);
|
|
}
|
|
}
|