Skip to content

Conversation

@SerVitasik
Copy link
Collaborator

…ememberMeDays

* @param adminUser - plugin/af pases current adminUser
* @param toReturn - this is an object which will get status of login process. If at least one callback returns error or redirectTo, login process will be stopped (future callbacks will not be called).
* @param response - http response object
* @param sessionDuration - duration of session in days
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SerVitasik I thought we agreed on using :"compact string literals" (Go/Prometheus-style) like '1m', '2h' '3d', '1m' etc. As I said short durations might be pretty preferred for fin sector so lets rework it now to not migrate in future.

If it is number then variable name should indicate what measure it had (.e.g. sessionDurationDays) but it is better have time-string syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants