|
@@ -50,7 +50,13 @@ namespace PRSDesktop
|
|
|
string ioslink = @"prsmobile://open/";
|
|
|
string androidlink = @"http://www.prsmobile.com/open/";
|
|
|
|
|
|
- string toEncrypt = App.DatabaseSettings.URL + "," + App.DatabaseSettings.Port + "," + user.UserID + "," + user.Password + "," + DateTime.Now.AddMinutes(5);
|
|
|
+ int expiry = 10;
|
|
|
+ var edt = new NumberEdit("Enter link expiry time in minutes", 10, 300, 10);
|
|
|
+ var result = edt.ShowDialog();
|
|
|
+ if (result == true)
|
|
|
+ expiry = edt.Value;
|
|
|
+
|
|
|
+ string toEncrypt = App.DatabaseSettings.URL + "," + App.DatabaseSettings.Port + "," + user.UserID + "," + user.Password + "," + DateTime.Now.AddMinutes(expiry);
|
|
|
string encrypted = Encryption.Encrypt(toEncrypt, "logindetailslink", true);
|
|
|
|
|
|
ioslink = ioslink + encrypted;
|
|
@@ -60,7 +66,7 @@ namespace PRSDesktop
|
|
|
"For Apple devices, click this link: " + ioslink + Environment.NewLine + Environment.NewLine
|
|
|
+ "For Android devices (Samsung, Google, Xiaomi, Oppo, Vivo, Huawei, Motorola etc), click this link: " + androidlink + Environment.NewLine + Environment.NewLine +
|
|
|
"Please restart the app after loading from the link." + Environment.NewLine + Environment.NewLine +
|
|
|
- "These links will expire after 10 minutes";
|
|
|
+ "These links will expire after " + expiry + " minutes.";
|
|
|
|
|
|
EmailUtils.CreateEMLFile(user.EmailAddress, "PRS Mobile Configuration Links", emailcontent);
|
|
|
|