Updated Personal Access Token logic to allow create tokens with expiry date beyond 365 days

What does this MR do and why?

This MR adds a check in max_expiration_lifetime_in_days function(link) which determines the max expiry date of a token. The ensures if require_personal_access_token_expiry? is set false, the function returns positive infinite number. A never-expiring token would be created eventually.

Relates to #508144 (closed)

Edited by Pratibha Gupta

Merge request reports

Loading