Marcin Kurczewski
823fa2da15
Removed useless dependency in UserService
2014-10-18 18:48:38 +02:00
Marcin Kurczewski
3744f0429a
Split FileService to NetworkingService and FileDao
2014-10-18 18:48:37 +02:00
Marcin Kurczewski
632bac8661
Added "use ..." statements
...
This version ditches backwards compatibility with PHP earlier than 5.6.
2014-10-18 18:48:36 +02:00
Marcin Kurczewski
185f820e21
Added support for legacy passwords
2014-10-18 18:48:36 +02:00
Marcin Kurczewski
31e0158606
Added user banning
2014-10-18 18:48:30 +02:00
Marcin Kurczewski
2fc6a23e46
Refactored search filters
2014-10-18 18:48:28 +02:00
Marcin Kurczewski
d2447045dd
Added basic post editing
2014-10-18 18:48:28 +02:00
Marcin Kurczewski
ac62a44ba7
Fixed registering multiple users with empty e-mail
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
7b0d907acc
Fixed login remembering
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
a3f9382671
Changed file mgmt to use entities' lazy getters
2014-10-18 18:48:26 +02:00
Marcin Kurczewski
815a37cf9a
Allowed setting e-mail to empty after activation
2014-10-18 18:48:23 +02:00
Marcin Kurczewski
047c84ec3a
Bypassed phpcs warnings that shouldn't be there
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
9bd114e5b6
Moved base64 decoding to FormData
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6035cf89b7
Added transaction manager
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
3e1aaebf89
Fixed account activation for first user
...
Until now, AuthService used to check for empty e-mail in order to tell
whether an account is activated. This was wrong for following scenario:
1. User doesn't enter any e-mail.
2. Because he is about to become the first user to register, he will
become an administrator.
3. Administrators don't need to confirm their e-mail address. Activation
e-mail is not sent, code for e-mail activation is run instead.
4. The user succeeds to create an e-mail-less administrator account.
5. The user fails to login due to unconfirmed e-mail.
6. The code that activates an e-mail just moves unconfirmed e-mail to
primary e-mail. That was the bug, there's no e-mail to confirm.
Things got (hopefully) simpler now, since I added separate column for
indicating whether account is activated.
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0548890d97
Introduced entity property getters/setters
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
847117a408
Shifted data transform responsibility from service
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
29b173de65
Simplified UserService
2014-10-18 18:48:20 +02:00
Marcin Kurczewski
c117367974
Added IValidatable; moved validation to FormData
...
I still struggle to find out how to deal with arguments like
$userNameOrEmail. Should I trim() them in controllers, or in service?
If I do it in service, shouldn't all of such validation belong in there?
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
109aa1c39e
Refactored thumbs; fixed setting custom avatars
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
45e18a9ba3
Improved PHP style
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
85a026c37b
Added e-mail confirmation and password reset
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
121c2f80dc
Refactored AuthService and UserService
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
e6b37d8e57
Added browsing settings
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
ee2ca7fbaf
Added account settings management and avatars
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
4c0a408152
Added account removal
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
03fbe0990a
Added user view placeholder templates
2014-10-18 18:48:18 +02:00
Marcin Kurczewski
ee9fde5402
Added proof of concept for pagination and search
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
e13db65f68
Paid off technical debt regarding validation
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
ae93b187ac
Fixed bugs in registration
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
03b65c196c
Worked on user registration
2014-10-18 18:48:16 +02:00
Marcin Kurczewski
c83c609b51
Moved validation to services
2014-10-18 18:48:16 +02:00
Marcin Kurczewski
1f6017aae7
Added fallback anonymous user to authorization
2014-10-18 18:48:16 +02:00
Marcin Kurczewski
18d9c21435
Added TokenService and UserService
2014-10-18 18:48:16 +02:00