Commit graph

66 commits

Author SHA1 Message Date
68422390da Implement CLI for user metadata 2021-02-10 11:24:01 -05:00
549c7bdc72 Style fixes 2021-01-08 15:47:19 -05:00
2946d950f2 Forbid more user names
- Control characters are now forbidden
- Controls and colons are now also forbidden when renaming
2020-12-27 10:08:00 -05:00
405f3af257 Invalidate sessions and Fever passwords when renaming users 2020-12-25 22:22:37 -05:00
5ec04d33c6 Add backend functionality to rename users 2020-12-25 17:47:36 -05:00
2e6c5d2ad2 Query Miniflux categories 2020-12-11 13:31:35 -05:00
ebdfad535c More Miniflux user tests
Also added user lookup functionality
2020-12-10 20:08:00 -05:00
e9d449a8ba Fix user manager and tests 2020-12-07 00:07:10 -05:00
fcf1260dab Adjust database portion of user property manager 2020-12-05 22:13:48 -05:00
978929aabd WIP redesign of user properties 2020-12-05 11:01:44 -05:00
06dee77bac First tests for Miniflux 2020-11-23 09:31:50 -05:00
d3ebb1bd56 Last set of tests for user management. Fixes #180 2020-11-17 16:23:36 -05:00
e16df90bae Style fixes 2020-11-16 10:26:14 -05:00
180b4ecc9b More user tests 2020-11-16 10:24:06 -05:00
27d9c046d5 More work on user management 2020-11-16 00:11:19 -05:00
7f2117adaa Differentiate between duplicate/missing users and other failure modes 2020-11-15 16:24:26 -05:00
dde9d7a28a Refinements to user manager
A greater effort is made to keep the internal database synchronized
2020-11-11 18:50:27 -05:00
eb2fe522bf Last bits of the new user metadata handling 2020-11-10 17:09:59 -05:00
5a17efc7b5 Clean up user driver API
- It is no longer assumed a driver knows whether a user exists
- The $password param is now required (but nullable when setting
2020-11-09 18:14:03 -05:00
771f79323c Strip out remnants of the authorizer 2020-11-09 16:51:30 -05:00
532ce4a502 Prototype changes to user management
The driver itself has not been expnaded; more is probably required to ensure
metadata is kept in sync and users created when the internal database does
not list a user an external database claims to have
2020-11-09 13:43:07 -05:00
e60f7ea03f Add class constant visibility 2020-03-01 18:32:01 -05:00
bc53a2d24a Style fixes 2020-03-01 15:16:50 -05:00
3ef1177f06 Remove driver lists 2019-10-18 13:20:28 -04:00
422eaf9605 Invalidate sessions on password change; closes #170 2019-07-25 22:34:58 -04:00
e45ba3f0ea Add means of unsetting a password in the backend 2019-03-24 14:42:23 -04:00
3aa2b62d02 Basic Fever skeleton
Authentication should work, but not tests have been written yet
2019-03-09 22:44:59 -05:00
5cd84c4ab4 Validate configuration parameters on import, and other changes
- Each parameter is checked for type and normalized
- Interval strings are converted to DateInterval objects
- Timeouts can be specified as interval strings
- Most intervals can be null to signify infinity
- Driver classes are checked that they implement the correct interface
- Short driver names may be used, and are used by default
- Helpful errors messages are printed in case of erroneous configuration

Exporting is currently broken; this will be fixed in an upcoming commit
2019-01-20 22:40:49 -05:00
cf896121b2 Style fixes 2018-12-05 17:28:11 -05:00
5f775bef7a Appease phpdbg coverage bug 2018-11-03 13:49:02 -04:00
931fe3b585 Move password generation to the User class
This allows user drivers which wish to generate their own passwords to
do so, and those which do not to defer to the built-in generator
2018-11-02 11:52:55 -04:00
898533bde5 More simplification
Authentication is now used as the primary point of synchronization
between the internal database and any external database
2018-11-02 10:01:49 -04:00
057d72c816 Remove the distinction between internal and external user functionality 2018-10-28 13:50:57 -04:00
11747c93fd Strip out unused user management functionality
Tests have been removed as well; new tests are forthcoming
2018-10-28 10:59:17 -04:00
1aa556cf12 Add HTTP authentication support to TTRSS; fixes #133
Also bump version to 0.4.0
2018-10-26 14:40:20 -04:00
79f9808f1f CS fixes 2017-12-07 15:18:25 -05:00
11b2066922 Added per-file legal boilerplate
Includes PHPDoc license tag in the file-level block with accompanying copyright notice.

Also added an AUTHORS file on the off chance of outside contributions
2017-11-16 20:23:18 -05:00
f7e50fe95d Passed code through linter 2017-08-29 10:50:31 -04:00
a485913535 Update readme; remove username composition; default pre-auth to false 2017-08-18 10:20:43 -04:00
d3bca6eb47 More code coverage accommodation 2017-07-20 22:40:09 -04:00
4cded011ff Complete implementations of server status and user status REST calls
- Fixes #30
- Fixes #31
- Avatars are not yet supported by the data model; blocked by issue #52
2017-07-19 18:07:36 -04:00
3a26c75044 Tests for Database::meta*() functions
Improves #49
2017-07-18 16:38:23 -04:00
da092d5f8c Changed Misc\DateFormatter to a collection of static methods and renamed it to Date; renamed Data to Arsse to avoid confusion and better reflect its centrality 2017-07-17 07:47:57 -04:00
d4674c61b2 More bug fixes
- use DateFormatter throughout the Feed class
- Ensure dates have TEXT affinity in SQLite, in case it matters
- Add a userPreAuth setting for when relying on the Web server to do authentication
2017-07-15 13:33:17 -04:00
15285dba1e Add PHPHDoc type hints for certain class properties
This should aid autocompletion in IDEs
2017-07-14 10:16:16 -04:00
c800852f3a Remove stubs to support non-HTTP authentication
Also removes authPreferHTTP setting
2017-05-26 13:06:06 -04:00
4a816f827b NCNv1 feed calls and other changes
- Implemented all but one feed-related function (it's more ofan item function)
- Fixed time conversion for input into SQL; dates in PM were previously wrong
- Added miscellaneous tentative functions to Database to help with peculiarities of NCNv1; these may change
- Tests to come soon
2017-05-18 23:03:33 -04:00
acbb254bfb Tests for removing subscriptions 2017-05-11 23:20:10 -04:00
98c950de58 Removed most calls to userExists()
- functions not related to user management now have the existence of the affected user checked in the authorizer, when the affected user differs from the actor
- User::authorizationEnabled() now nests: disabling twice and then enabling once leaves the authorizer disabled
- Disabling of the authorizer is now tested
- User tests now use a partial mock instead of relying on User::authorizationEnabled()
- Added authorizer tests against a missing user
- Removed folder tests related to missing users
- Also added more subscription tests
2017-05-11 18:00:35 -04:00
a67fe30408 Fix whitespace
Also fixed my editor so tabs won't happen again!
2017-04-06 21:41:21 -04:00