Migration page improved

main
Inga 🏳‍🌈 15 years ago
parent 0eaeaea909
commit aa2a9a51e4
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      IISMainHandler/handlers/response/MigrateAccountHandler.cs
  3. 5
      templates/Full/MigrateAccount.xslt
  4. 5
      templates/Lite/MigrateAccount.xslt

@ -31,7 +31,7 @@ namespace FLocal.IISHandler.handlers.response {
string key = Util.RandomString(8, Util.RandomSource.LETTERS_DIGITS);
return new XElement[] {
new XElement("migrationInfo",
new XElement("accountId", account.id),
account.exportToXml(context),
new XElement("key", key),
new XElement("check", Util.md5(key + " " + Config.instance.SaltMigration + " " + account.id))
),

@ -9,7 +9,8 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr>
<td class="tdheader">
<xsl:text>Ìèãðàöèÿ ïîëüçîâàòåëÿ</xsl:text>
<xsl:text>Ìèãðàöèÿ ïîëüçîâàòåëÿ </xsl:text>
<xsl:value-of select="migrationInfo/account/user/name"/>
</td>
</tr>
<tr class="darktable">
@ -23,7 +24,7 @@
<td class="lighttable">
<form method="post" action="/do/MigrateAccount/">
<input type="hidden" name="accountId">
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/accountId"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/account/id"/></xsl:attribute>
</input>
<input type="hidden" name="check">
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/check"/></xsl:attribute>

@ -9,7 +9,8 @@
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr>
<td class="tdheader">
<xsl:text>Ìèãðàöèÿ ïîëüçîâàòåëÿ</xsl:text>
<xsl:text>Ìèãðàöèÿ ïîëüçîâàòåëÿ </xsl:text>
<xsl:value-of select="migrationInfo/account/user/name"/>
</td>
</tr>
<tr class="darktable">
@ -23,7 +24,7 @@
<td class="lighttable">
<form method="post" action="/do/MigrateAccount/">
<input type="hidden" name="accountId">
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/accountId"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/account/id"/></xsl:attribute>
</input>
<input type="hidden" name="check">
<xsl:attribute name="value"><xsl:value-of select="migrationInfo/check"/></xsl:attribute>

Loading…
Cancel
Save