mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-07 14:38:03 +00:00
fix(pwd): use the proper url for reset password mail
This commit is contained in:
@@ -1371,8 +1371,9 @@ static const NSString *kJwtKey = @"jwt";
|
||||
|
||||
// Send mail
|
||||
mailer = [SOGoMailer mailerWithDomainDefaults: dd];
|
||||
url = [NSString stringWithFormat:@"%@%@?token=%@"
|
||||
, [[request headers] objectForKey:@"origin"]
|
||||
|
||||
url = [NSString stringWithFormat:@"%@/%@?token=%@"
|
||||
, [[context serverURL] absoluteString]
|
||||
, [request uri]
|
||||
, jwtToken];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user