Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to change the Reset Password token expiration time in Umbraco 10.1?
The token is being generated like so:
string token = await _memberManager.GeneratePasswordResetTokenAsync(user);
Thanks in advance! Cheers
Looking for same thing but for back office. Answer seems to be in asp.net core generates tokens with its DataProtectionTokenProviders.
If you add this line to Startup.cs then the token expires after 1 min. Issue is I think it will apply to all tokens so could affect ones that should be longer/shorter.
public void ConfigureServices(IServiceCollection services)
opt.TokenLifespan = TimeSpan.FromMinutes(1);
Just change it to FromDays(x)
Thanks! I don't have plans to add aditional tokens, so that might just work!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted