Developer forum

Forum » CMS - Standard features » Login redirect to same page with no error

Login redirect to same page with no error

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I have a strange problem with my DW 9 installation.
When trying to login I'm redirected to the same page, but with no error.

I have checked:

  • Template is default (from wrap)
  • Permissions are correct
  • User is created
  • Password is correct

Still it wont work, anyone experienced such a problem before?


Replies

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply
This post has been marked as an answer

Found the problem! It was releated to some redirect code.

@if (!string.IsNullOrEmpty(GetString("UserManagement:User.Login.SuccessRedirectToPage")))
                {
                    <input type="hidden" name="Redirect" value='@GetString("UserManagement:User.Login.SuccessRedirectToPage")' />
                }
                else
                {
                    <input type="hidden" name="Redirect" value='@HttpContext.Current.Request.Url.PathAndQuery' />
                }

When I removed this it worked...

Votes for this answer: 1
 
Nicolai Pedersen
Reply

Odd code. Coming from wrap?

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

No, think maybe it was added afterwards...

 

You must be logged in to post in the forum