Fix URL e parametri CONF x url redirect auth
This commit is contained in:
@@ -186,7 +186,7 @@ namespace MP.Controllers
|
||||
{
|
||||
ViewBag.Title = "MP";
|
||||
ViewBag.Message = "Elenco Utenti";
|
||||
ViewBag.BaseUrl = "http://iis02/MP/TAB/jumper";
|
||||
ViewBag.BaseUrl = WebConfigurationManager.AppSettings["baseAuthUrl"];
|
||||
ViewBag.Environment = WebConfigurationManager.AppSettings["Environment"];
|
||||
using (var ctx = new MoonProEntities())
|
||||
{
|
||||
@@ -214,7 +214,7 @@ namespace MP.Controllers
|
||||
CharacterSet = "UTF-8",
|
||||
Width = 600,
|
||||
Height = 600,
|
||||
Margin = 0
|
||||
Margin = 0
|
||||
};
|
||||
var writer = new BarcodeWriter();
|
||||
writer.Format = BarcodeFormat.QR_CODE;
|
||||
@@ -226,7 +226,7 @@ namespace MP.Controllers
|
||||
MemoryStream ms = new MemoryStream();
|
||||
pixelData.Save(ms, ImageFormat.Png);
|
||||
ms.Position = 0;
|
||||
return new FileStreamResult(ms, "image/png");
|
||||
return new FileStreamResult(ms, "image/png");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
matr: @item.MatrOpr
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<img src="@Url.Action("QR", new { valore = @ViewBag.BaseUrl + "?MatrOpr=" + @item.MatrOpr + "&authKey=" + item.authKey })" alt="Image 12345" style="width: 100px;" />
|
||||
<img src="@Url.Action("QR", new { valore = @ViewBag.BaseUrl + "MatrOpr=" + @item.MatrOpr + "&authKey=" + item.authKey })" alt="Image 12345" style="width: 100px;" />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<appSettings>
|
||||
<add key="appVers" value="Donati" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="Environment" value="Donati - Prod" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="baseAuthUrl" value="http://192.168.51.77/MP/TAB/jumper?" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_smtpCli" value="192.168.48.1" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_emailUser" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_emailPwd" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<add key="baseAuthUrl" value="http://IIS01/MP/TAB/jumper?" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</configuration>
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<add key="baseAuthUrl" value="http://IIS02/MP/TAB/jumper?" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</configuration>
|
||||
@@ -4,6 +4,7 @@
|
||||
<appSettings>
|
||||
<add key="appVers" value="Jetco" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="Environment" value="Jetco - Prod" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="baseAuthUrl" value="http://192.168.1.7/MP/TAB/jumper?" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UrlMpSite" value="../SITE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UrlMpAdmin" value="../ADM" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UrlMpIO" value="../IO" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<add key="UpdateToDefault" value="true" />
|
||||
<add key="refreshShort" value="50000" />
|
||||
<add key="refreshLong" value="300000" />
|
||||
<add key="baseAuthUrl" value="http://iis02/MP/TAB/jumper?" />
|
||||
<!--URL se DB non andasse..-->
|
||||
<add key="UrlMpSite" value="../MP/SITE" />
|
||||
<add key="UrlMpAdmin" value="../MP/ADM" />
|
||||
|
||||
Reference in New Issue
Block a user