1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-30 21:00:13 +02:00
Commit Graph

223 Commits

Author SHA1 Message Date
Marco
f06af42f87 Move method 'getUserDataByUsername' from 'Auth' to 'UserManager' 2017-02-25 16:18:51 +01:00
Marco
6c6f34935c Add tests for method 'createUser' in class 'Administration' 2017-02-25 15:45:58 +01:00
Marco
293c231003 Do not offer email verification when creating users as admin 2017-02-25 15:44:37 +01:00
Marco
05d72a849b Improve language 2017-02-21 10:02:49 +01:00
Marco
cf41c9a105 Add methods 'createUser' and 'createUserWithUniqueUsername' 2017-02-21 10:02:03 +01:00
Marco
da4bb583bf Add component for administrative tasks as class 'Administration' 2017-02-21 09:43:30 +01:00
Marco
d99979f270 Move method 'createUserInternal' from class 'Auth' to 'UserManager' 2017-02-21 09:28:42 +01:00
Marco
22872d55bd Import class 'IntegrityConstraintViolationException' in 'UserManager' 2017-02-21 09:27:54 +01:00
Marco
ff6d78942a Move method 'createConfirmationRequest' from 'Auth' to 'UserManager' 2017-02-21 09:26:10 +01:00
Marco
d27005df10 Import class 'Error' in 'UserManager' 2017-02-21 09:22:40 +01:00
Marco
ad2aa84e4a Move method 'validatePassword' from class 'Auth' to 'UserManager' 2017-02-21 09:19:09 +01:00
Marco
f7d50d53ea Move method 'validateEmailAddress' from class 'Auth' to 'UserManager' 2017-02-21 09:17:08 +01:00
Marco
e916c3d07e Move method 'createRandomString' from class 'Auth' to 'UserManager' 2017-02-21 09:13:39 +01:00
Marco
fdeff8a792 Emphasize that class 'UserManager' is for internal use only 2017-02-21 09:03:55 +01:00
Marco
43fa612d67 Move method 'throttle' and its constants from 'Auth' to 'UserManager' 2017-02-21 08:55:10 +01:00
Marco
0b0258f29a Manually require file 'Exceptions.php' in parent class as well 2017-02-21 08:45:27 +01:00
Marco
9252bee030 Let parent class 'UserManager' manage database connection for 'Auth' 2017-02-21 08:40:30 +01:00
Marco
6a15679238 Make class 'Base64' final 2017-02-21 08:28:14 +01:00
Marco
8ab08f41e1 Let autoloader fetch class 'Base64' instead of including it manually 2017-02-21 08:27:19 +01:00
Marco
83464c0be7 Improve description of 'Auth' class 2017-02-21 08:07:38 +01:00
Marco
b5c853388c Make class 'Auth' final 2017-02-21 08:01:41 +01:00
Marco
5585623e08 Let class 'Auth' extend abstract class 'UserManager' 2017-02-21 08:00:26 +01:00
Marco
a7d640154c Add abstract class 'UserManager' 2017-02-21 07:59:49 +01:00
Marco
8acd3a9779 Add tests for method 'loginWithUsername' in class 'Auth' v4.3.0 2017-02-20 21:46:36 +01:00
Marco
374f27176b Add tests for method 'registerWithUniqueUsername' in class 'Auth' 2017-02-20 21:42:48 +01:00
Marco
3cb2284870 Add public method 'loginWithUsername' to class 'Auth' 2017-02-20 21:36:45 +01:00
Marco
690485ba6d Add support for sign in via username to 'authenticateUserInternal' 2017-02-20 21:32:45 +01:00
Marco
495a87d499 No need to check for uniqueness of username if none has been provided 2017-02-20 20:52:02 +01:00
Marco
784030139b Treat empty string or whitespace-only string as non-existent username 2017-02-20 20:48:03 +01:00
Marco
fb6f3d31b8 Add private method 'getUserDataByUsername' to class 'Auth' 2017-02-20 19:57:23 +01:00
Marco
370ecc4933 Add class 'AmbiguousUsernameException' 2017-02-16 09:48:55 +01:00
Marco
da2d282648 Add class 'UnknownUsernameException' 2017-02-16 09:48:04 +01:00
Marco
4aaf85e3cf Add class 'EmailOrUsernameRequiredError' 2017-02-16 09:47:26 +01:00
Marco
f2561a1932 Re-use 'getUserDataByEmailAddress' in 'authenticateUserInternal' 2017-02-16 08:56:44 +01:00
Marco
8cc54473e3 Improve language of parameter name 2017-02-16 08:30:24 +01:00
Marco
f26f2209cd Store email address in session data as found in the database 2017-02-16 08:25:14 +01:00
Marco
188086f2e4 Do not validate password earlier than necessary 2017-02-16 08:18:48 +01:00
Marco
c6213a6081 Change order of parameters in 'authenticateUserInternal' 2017-02-16 08:15:48 +01:00
Marco
c55250c572 Refactor body of 'login' method into new 'authenticateUserInternal' 2017-02-15 18:29:15 +01:00
Marco
dac2850aba Add method 'registerWithUniqueUsername' v4.2.0 2017-02-15 17:19:16 +01:00
Marco
4268e3fcd5 Add support for unique username constraint in 'createUserInternal' 2017-02-15 17:11:56 +01:00
Marco
d579179494 Add class 'DuplicateUsernameException' 2017-02-15 17:06:08 +01:00
Marco
bd02e08f83 Refactor body of 'register' method into new 'createUserInternal' 2017-02-15 16:41:38 +01:00
Marco
d4fe11b844 Improve language 2017-02-15 16:39:17 +01:00
Marco
09fabd4c91 Improve notes in 'General advice' section of README 2017-01-31 23:49:36 +01:00
Marco
4dcf491ad9 Fix language in README 2017-01-30 19:33:04 +01:00
Marco
4f5ff151ef Improve installation instructions by excluding steps for manual setup 2017-01-30 19:31:45 +01:00
Marco
f5027c09e9 Add table of contents to 'Usage' section in README 2017-01-30 19:10:28 +01:00
Marco
6db82d1f65 Add guide on how to store and access additional user information 2017-01-30 19:04:11 +01:00
Marco
f944067aff Set 'ignore_user_abort' to 'true' in method 'register' 2017-01-30 18:48:23 +01:00