<feed xmlns='http://www.w3.org/2005/Atom'>
<title>FreshRSS (Customized)/app/Models/Auth.php, branch 1.19.0</title>
<subtitle>Customized version of FreshRSS, a self-hosted RSS feed aggregator</subtitle>
<id>https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.19.0</id>
<link rel='self' href='https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.19.0'/>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/'/>
<updated>2021-12-02T22:25:07+00:00</updated>
<entry>
<title>Minz request avoid custom methods (#4020)</title>
<updated>2021-12-02T22:25:07+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2021-12-02T22:25:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=a2ab9cf83aaead96497a70a1430ce0424c0d8316'/>
<id>urn:sha1:a2ab9cf83aaead96497a70a1430ce0424c0d8316</id>
<content type='text'>
Take advantage of PHP7+ null-coalescing operator `??` to make code more standard, shorter, and faster instead of custom function with no extra functionality.

Allows code to be better tested and fix two PHPstan errors:

```
 ------ -----------------------------------------
  Line   app/Controllers/configureController.php
 ------ -----------------------------------------
  410    Cannot unset offset 'rid' on string.
 ------ -----------------------------------------

 ------ ------------------------------------
  Line   lib/Minz/FrontController.php
 ------ ------------------------------------
  70     Cannot unset offset 'c' on string.
  71     Cannot unset offset 'a' on string.
 ------ ------------------------------------
```

https://github.com/FreshRSS/FreshRSS/issues/4016</content>
</entry>
<entry>
<title>Avoid manual initialisations of system or user configuration (#3070)</title>
<updated>2021-01-02T20:20:19+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2021-01-02T20:20:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=9c6682e7edf8cbad828088cbeeef66c7ecefdd9a'/>
<id>urn:sha1:9c6682e7edf8cbad828088cbeeef66c7ecefdd9a</id>
<content type='text'>
* Avoid manual intialisations of system or user configuration

More consistent use of Context

* Simplify FreshRSS_Context::initUser

* Remove a few manual get_user_configuration

* A bit of debugging

* Fix context user init

* Fix install

* Fix concurrency

Concurrent requests could lead to bad race condition

* Fix actualize cron

Fix case when system i initialised several times</content>
</entry>
<entry>
<title>Add a file for each Auth class (#3298)</title>
<updated>2020-12-28T15:44:32+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2020-12-28T15:44:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=465b40f52d758a959747d4d6d6671cb776784e2c'/>
<id>urn:sha1:465b40f52d758a959747d4d6d6671cb776784e2c</id>
<content type='text'>
It's a follow-up of what was started in #3297.</content>
</entry>
<entry>
<title>Auto-renew cookie (#3287)</title>
<updated>2020-12-28T12:09:57+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2020-12-28T12:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=ac0d90c1008bce32c56e49cb642d40391e45e0a5'/>
<id>urn:sha1:ac0d90c1008bce32c56e49cb642d40391e45e0a5</id>
<content type='text'>
#fix https://github.com/FreshRSS/FreshRSS/issues/3169#issuecomment-685983797
Supplement https://github.com/FreshRSS/FreshRSS/pull/3170

When we get the long-term login cookie (i.e. when starting a new session), renew it at the same time for the same duration</content>
</entry>
<entry>
<title>bump default logout from 30 days to 3 months (#3170)</title>
<updated>2020-12-26T22:40:24+00:00</updated>
<author>
<name>Martin</name>
<email>spleefer90@gmail.com</email>
</author>
<published>2020-12-26T22:40:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=6ecfc01c1f3f37491b184711cb29cd9a839f4a9c'/>
<id>urn:sha1:6ecfc01c1f3f37491b184711cb29cd9a839f4a9c</id>
<content type='text'>
* bump default logout from 30 to 365 days

* * Change cookie duration to constant
* Change cookie duration to three months

* use class

* use 90 days (otherwise login form says 91.3 days)

* change class

* also this works now

Co-authored-by: Martin Rys &lt;martin@rys.pw&gt;
Co-authored-by: Frans de Jonge &lt;fransdejonge@gmail.com&gt;</content>
</entry>
<entry>
<title>Minz allow parallel sessions (#3096)</title>
<updated>2020-10-06T21:19:45+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2020-10-06T21:19:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=0319cc9d234e107109d988f36f2361b25f9f0777'/>
<id>urn:sha1:0319cc9d234e107109d988f36f2361b25f9f0777</id>
<content type='text'>
* Minz allow parallel sessions

#fix https://github.com/FreshRSS/FreshRSS/issues/3093

* Array optimisation

* Array optimisation missing

* Reduce direct access to $_SESSION except in install process

* Fix session start headers warning

* Use cookie only the first time the session is started:
`PHP Warning:  session_start(): Cannot start session when headers
already sent in /var/www/FreshRSS/lib/Minz/Session.php on line 39`

* New concept of volatile session for API calls

Optimisation: do not use cookies or local storage at all for API calls
without a Web session
Fix warning:

```
PHP Warning:  session_destroy(): Trying to destroy uninitialized session
in Unknown on line 0
```

* Only call Minz_Session::init once in our index

It was called twice (once indirectly via FreshRSS-&gt;init())

* Whitespace

* Mutex for notifications

Implement mutex for notifications
https://github.com/FreshRSS/FreshRSS/pull/3208#discussion_r499509809

* Typo

* Install script is not ready for using Minz_Session</content>
</entry>
<entry>
<title>Add auto-registration when using http_auth (#3003)</title>
<updated>2020-06-19T21:01:19+00:00</updated>
<author>
<name>bpatath</name>
<email>62777491+bpatath@users.noreply.github.com</email>
</author>
<published>2020-06-19T21:01:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=5c9d6a5396eb43739eb1c17540228c20a16f4554'/>
<id>urn:sha1:5c9d6a5396eb43739eb1c17540228c20a16f4554</id>
<content type='text'>
* Add auto-registration when using http_auth

* Document HTTP auth auto-registration

* Check email variable for HTTP auth auto-registration

* Auto-create HTTP users by default

* Fix Context init

(I will provide in another PR a better fix requiring a bit of global refactoring)

* Init language

Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;</content>
</entry>
<entry>
<title>A wrong login must return HTTP 403 (#2903)</title>
<updated>2020-04-17T08:56:06+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2020-04-17T08:56:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=a49db010e4a5e48017d8583c374210242a680ddd'/>
<id>urn:sha1:a49db010e4a5e48017d8583c374210242a680ddd</id>
<content type='text'>
* A wrong login must produce HTTP 403

#fix https://github.com/FreshRSS/FreshRSS/issues/2901
https://github.com/FreshRSS/FreshRSS/pull/2794/files#r389319248

* Just for consistency</content>
</entry>
<entry>
<title>fix: Make sure to have user conf in hasAccess (#2769)</title>
<updated>2020-01-16T13:25:51+00:00</updated>
<author>
<name>Marien Fressinaud</name>
<email>dev@marienfressinaud.fr</email>
</author>
<published>2020-01-16T13:25:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=d7ac234036a10f575a902af6fc63bb890f85c7b1'/>
<id>urn:sha1:d7ac234036a10f575a902af6fc63bb890f85c7b1</id>
<content type='text'>
The `FreshRSS_Auth::hasAccess` method is called during auth
initialization (`app/FreshRSS.php:78`), only for `user#create` action.
However, at this step, the `user` configuration namespace hasn't be
initialized yet, and so users weren't able to register because of the
exception... quite critical!</content>
</entry>
<entry>
<title>Add an admin flag on users (#2709)</title>
<updated>2020-01-06T19:28:04+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2020-01-06T19:28:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=3c099c78537020eae3b6fe060fbe86088e996c83'/>
<id>urn:sha1:3c099c78537020eae3b6fe060fbe86088e996c83</id>
<content type='text'>
Now FRSS supports more than one admin. Admins have the same rights as
the default user. Admins can promote or demote other users. The default
user is considered as an admin even if it does not have the admin flag
enabled.

See #2096</content>
</entry>
</feed>
