|
@@ -56,7 +56,9 @@ namespace PRSDesktop
|
|
|
if (result == true)
|
|
|
expiry = edt.Value;
|
|
|
|
|
|
- string toEncrypt = App.DatabaseSettings.URLs + "," + user.UserID + "," + user.Password + "," + DateTime.Now.AddMinutes(expiry);
|
|
|
+ string URLs = CreateURLs(App.DatabaseSettings.URLs);
|
|
|
+
|
|
|
+ string toEncrypt = URLs + "," + user.UserID + "," + user.Password + "," + DateTime.Now.AddMinutes(expiry);
|
|
|
string encrypted = Encryption.Encrypt(toEncrypt, "logindetailslink", true);
|
|
|
|
|
|
ioslink = ioslink + encrypted;
|
|
@@ -73,6 +75,16 @@ namespace PRSDesktop
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ private string CreateURLs(string[] urls)
|
|
|
+ {
|
|
|
+ string URLs = "";
|
|
|
+ foreach (var url in urls)
|
|
|
+ {
|
|
|
+ URLs = URLs + url + ",";
|
|
|
+ }
|
|
|
+ return URLs + "ENDURLS";
|
|
|
+ }
|
|
|
+
|
|
|
private BitmapImage? EmailImage(CoreRow? arg)
|
|
|
{
|
|
|
return PRSDesktop.Resources.email.AsBitmapImage();
|