"Log in" link doesn't go to a login page anymore

nate's Avatar

nate

06 Feb, 2009 02:02 PM

The "Log in" link at the top right of the page, where it says: "Not logged in. Log in", just redirects you to the front page. It's doing this at support.inklingmarkets.com, and at help.tenderapp.com. Didn't this used to take you right to the login page?

  1. 1 Posted by nate on 06 Feb, 2009 02:44 PM

    nate's Avatar

    Sorry, it actually just takes you to whatever page you are already on. It doesn't go to the root page. So if I am on "http://support.inklingmarkets.com/discussions", click "Log in" it just links right to: http://support.inklingmarkets.com/discussions.

  2. Support Staff 2 Posted by Courtenay on 06 Feb, 2009 06:13 PM

    Courtenay's Avatar

    Hey Nate,

    You have the cookie-based login code ("HMAC") enabled, right? You should set the "Login URL" in your admin settings.

  3. Support Staff 3 Posted by Courtenay on 06 Feb, 2009 06:18 PM

    Courtenay's Avatar

    For example on Lighthouse we use

    http://my.lighthouseapp.com/login?to=http://help.lighthouseapp.com
    

    When the user logs into Lighthouse, it then returns them to the support site.

  4. 4 Posted by nate on 06 Feb, 2009 06:18 PM

    nate's Avatar

    I'm confused. But I want to use your login page. I haven't touched
    this login page setting stuff. I just went ahead and generated the
    HMAC secret now thinking that's what you are talking about, but that
    didn't work. But I've never set the login url and didn't want to.

    I noticed that login page is working on help.tenderapp.com now. It
    wasn't this morning either.

  5. 5 Posted by nate on 06 Feb, 2009 06:21 PM

    nate's Avatar

    Right, i get that. But I wanted the native login page. I tried to
    set the login just now to junk, than reset it to blank, but that
    didn't work. Now I'm thinking of setting the login page to:

    http://support.inklingmarkets.com/login

  6. Support Staff 6 Posted by Courtenay on 06 Feb, 2009 06:22 PM

    Courtenay's Avatar

    Yup, there was a change we pushed last night. I'll modify that. Are you sure you didn't have the HMAC secret generated previously?

  7. 7 Posted by nate on 06 Feb, 2009 06:28 PM

    nate's Avatar

    I'm almost positive I've never clicked the "Click here to set the HMAC
    login." before just after receiving your reply about this issue. And,
    I'm 99.9% positive I've never set the alternate login url, also until
    just now trying to futz with a workaround.

    Thanks for looking into a fix. I did confirm that a brand new tender:
    testsite.tenderapp.com, didn't exhibit the same problem. The "Log in"
    link is working fine there.

  8. Support Staff 8 Posted by Courtenay on 06 Feb, 2009 06:30 PM

    Courtenay's Avatar

    Oh, I see what the problem is.

    Will fix and deploy ASAP.

  9. Support Staff 9 Posted by Courtenay on 06 Feb, 2009 06:35 PM

    Courtenay's Avatar

    Yes, as it turns out a blank field and a null field are different things.

  10. Support Staff 10 Posted by Courtenay on 06 Feb, 2009 06:37 PM

    Courtenay's Avatar

    This is fixed. Thanks for your patience and excellent bug report :)

  11. Courtenay closed this discussion on 06 Feb, 2009 06:37 PM.

  12. nate re-opened this discussion on 06 Feb, 2009 06:39 PM

  13. 11 Posted by nate on 06 Feb, 2009 06:39 PM

    nate's Avatar

    :) I know that problem. Were you guys just doing a:

    if site.login_url return site.login_url else return "/login?to=something" end

    kind of thing? Instead of a if !site.login_url.blank? ?

  14. 12 Posted by nate on 06 Feb, 2009 06:43 PM

    nate's Avatar

    Thanks man! Maybe activerecord should set blanks to nil by default doing updates/creates? Or maybe, and this is probably even a worse idea. "".nil? should return true.

  15. Support Staff 13 Posted by Courtenay on 06 Feb, 2009 07:00 PM

    Courtenay's Avatar

    Hahaha something like that. Amateur hour at ENTP

    ============ Courtenay (310) 294-4026

      ^{0,o}'
    

    On Feb 6, 2009, at 10:40 AM, Tender Support [email blocked]
    wrote:

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac