Search code examples
asp.netrazorumbracoumbraco7http-status-code-400

Umbraco 7.6.1 Upgrade Login Issue - 400 (Bad Request)


After Upgrading from Umbraco 7.5.3 to 7.6.1 I have become unable to log in to the backoffice as an admin.

I have checked in the Users Database and userDisabled & userNoConsole are both 0,

My Username, UserLogin & UserEmail are all the same,

And I have a site running off the same database on 7.5.3 that I can log in to with the same credentials with no issue (so I can confirm my password is definitely correct!),

When I try and log in I get a 'Login failed for user [email protected]' message.

The Chrome error console shows:

Failed to load resource: the server responded with a status of 400 (Bad Request)
umbraco/backoffice/UmbracoApi/Authentication/PostLogin

Which when clicked on shows

)]}',
{"Message":"The requested resource does not support http method 'GET'."}

I have tried the UrlRewrite trick

<rewrite>
  <rules>
    <!-- Redirect rule to force all URLs to lowercase -->
    <rule name="LowerCaseRule" stopProcessing="true">
      <match url="[A-Z]" ignoreCase="false" />
      <action type="Redirect" url="{ToLower:{URL}}" />
      <conditions>
        <add input="{REQUEST_URI}" pattern="^.*/umbraco" negate="true" />
        <add input="{REQUEST_URI}" pattern="^.*/install" negate="true" />
      </conditions>
    </rule>
  </rules>
</rewrite>

So I can log in using '/Umbraco' rather than '/umbraco'

I have updated client dependency to wipe any js cache, and cleared my browser history. I have also tried clearing App_data.

All front end of the site works perfectly, as far as I can tell

How can I log in to my back office in 7.6.1?!


Solution

  • Hi Tristram does your site use Legacy encoding?

    You may need to change your web.config back to using legacy encoding if this is so to do this update web.config useLegacyEncoding=true

    From release notes: https://our.umbraco.org/contribute/releases/761

    In web.config do NOT change useLegacyEncoding to false if it is currently set to true - changing the password encoding will cause you not being able to log in any more