Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rdmDev 6 posts 96 karma points
    4 days ago
    rdmDev
    0

    Hello all.

    I've installed Umbraco 7.12.4 (on IIS Express) using Visual Studio Code and things have been going well until now.

    Basically, "Member" account creation through the Back Office works correctly. However, none of these accounts can log in, with the following error appearing in Chrome "devtools":

    "http://localhost:42507/umbraco/backoffice/UmbracoApi/Authentication/PostLogin 400 (Bad Request)"

    I have followed the tutorial on https://our.umbraco.com/documentation/Getting-Started/Data/Members/ and:

    • Created a Member ("test").
    • Created a Member Group ("Registered Users") & assigned the Member.
    • Created a "test page".
    • Under "Public access" for the "test page", added "Role Based Protection" for the Member group ("Registered Users").
    • Defined the "Login" & "Error" pages for the "Role based Protection" applied to the "test" page.

    ..Yet when I attempt to log in with any Member account, I see "Login failed for user test" & the error in DevTools.

    Can anyone enlighten me as to why this is happening? I've followed the tutorials on both our.umbraco and umbraco.tv and simply cannot get this to work. I'm wondering if there is something I have missed out in the steps above.

    Thanks in advance for your time.

  • Craig Mayers 164 posts 485 karma points
    3 days ago
    Craig Mayers
    0

    Hi rdmDev,

    Can you share the code you are using to handle the Login attempts?

    Also, if you open the URL that is being returned in the browser console window it might show you some more specific error details.

    Thanks

    Craig

  • rdmDev 6 posts 96 karma points
    3 days ago
    rdmDev
    0

    Hello Craig.

    There's no custom code at the moment, I'm simply adding a new Member in the Back Office then attempting to login as that Member.

    I see a "Login failed for user" message and when checking DevTools see the following:

    • XML Parsing Error: no root element found Location: https://my site URL removed/umbraco/backoffice/UmbracoApi/Authentication/PostLogin Line Number 1, Column 1:

    When I "view source" on the error I see the following: - view-source:https://my site URL removed/umbraco/backoffice/UmbracoApi/Authentication/PostLogin

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

    The message above looks like a redirect is occurring? This is on a basic site with the "Starter Kit", running locally on "Visual Code with IIS Express".

    Thanks for responding =]

Please Sign in or register to post replies

Write your reply to:

Draft