Commit Graph
10 Commits
Author SHA1 Message Date
Matteo Piovanelli 0754e7ba65 User data providers and cookie expiration setting (#7945)
* Added providers to compute and validate the userdata string for authentication cookies

* Added UserDataProvider based on the date when the password was changed last: this means that changing the password invalidates all extant authentication cookies

* Added a service that allows configuring the lifespan of auth cookies, rather than always using a constant. The default implementation returns the same constant.

* Added setting to control the life span of authentication cookies

* Added setting to control the behaviour on changing password: logout every client, or none.
Added code to prevent users that were authenticated with "old" cookies to be suddenly logged out when deploying this

* Removed ISecurityService implementation from Orchard.Users.
Changed FormsAuthenticationService and DefaultSecurityService so that property injection configured in sites.config still works the same as before, and takes priority over ISecurityService implementations.
Changed serialization of UserData dictionary to use Newtonsoft.Json.
Added check to upgrade the authentication cookie whenever an "old" one is received.

* On cookie upgrade we do not give a fresh new cookie, but rather we keep the same expiration
2018-02-05 09:29:26 -08:00
Matteo Piovanelli baac878337 Terms could not be saved (#7907)
Fixes #7676
2017-12-06 09:18:17 -08:00
Matteo Piovanelli 584ba97b27 Binding in ContentType editor (#7886)
Change the prefix so that binding does not care whether parts are in a different order in the type definition
2017-10-26 12:14:42 -07:00
Matteo Piovanelli f146b81f47 Rolls back previous change (#7882)
#7877 introduced more issues than it solved. I propose rolling it back, and test this deeper.
2017-10-13 12:31:06 -07:00
Matteo Piovanelli d6fa50aaee TaxonomyField was running Update when it should not (#7877) 2017-10-12 12:21:40 -07:00
Matteo Piovanelli 244ea89b27 Added join to order results of the query (#7860)
Fixes #7859
2017-09-21 12:09:42 -07:00
Matteo Piovanelli e407bb86aa Allow handling culture patterns more robustly (#7867)
Fixes #7866
2017-09-21 12:06:14 -07:00
Matteo Piovanelli a9261d879d Fix taxonomy localization issue with fields (#7808)
Fixes #7805
2017-08-10 12:13:49 -07:00
Matteo Piovanelli 4cb0b3b5c4 Localization improvements (#7596)
Updates to handling of MasterContentItem (as they are in 1.10.x)
Synchronization of CultureNeutral Fields and Parts (based on Cloning)
Support for multi-language Blogs (in its own feature in the Blogs module)
Support for multi-language Taxonomies (in its own feature in the Taxonomies module)
2017-04-03 10:33:14 -07:00
Matteo Piovanelli 86ec07007f Allows draft ContentItems in ContentPickerField (#7624)
Fixes #7623
2017-03-31 12:31:15 -07:00