Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support datetime string for CookieLogin duration #84

Open
rustamwin opened this issue Oct 14, 2023 · 0 comments
Open

Support datetime string for CookieLogin duration #84

rustamwin opened this issue Oct 14, 2023 · 0 comments
Labels
type:enhancement Enhancement

Comments

@rustamwin
Copy link
Member

rustamwin commented Oct 14, 2023

See https://github.com/yiisoft/user/blob/master/config/di-web.php#L38

($duration = $params['yiisoft/user']['cookieLogin']['duration']) !== null ?
                (
                    str_starts_with($duration, 'P') ?
                    new DateInterval($duration) : 
                    DateInterval::createFromDateString($duration)
                ) :
                null,
@rustamwin rustamwin added the type:enhancement Enhancement label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant