#622 open
Henry Baragar

user_activate_url and user_reset_password_url do not put in protocol for https

Reported by Henry Baragar | February 4th, 2010 @ 04:15 AM | in Hobo 1.4

My application is run under https, but the user_activate_url and user_reset_password_url generate urls with "http:" as the protocol, meaning new users get the wrong url.

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen February 4th, 2010 @ 02:48 PM

    As a temporary workaround, you can use user_activate_path instead.

  • Bryan Larsen

    Bryan Larsen February 4th, 2010 @ 03:10 PM

    I'm not sure what you're using it for. If it's a link target, you generally don't need the protocol.

    Just to be clear, your entire application is under https, correct. I'm coding a patch so that (I hope) you can change your config/routes.rb to contain:

    Hobo.add_routes(map, :requirements => {:protocol => :https})

    This will set the protocol on all Hobo routes. Will that work for you?

  • Bryan Larsen

    Bryan Larsen February 4th, 2010 @ 03:25 PM

    Please try the attached patch and let me know if it works for you. change your config/routes.rb:

    Hobo.add_routes(map, :requirements => {:protocol => "https"})
    
  • Matt Jones

    Matt Jones February 4th, 2010 @ 08:57 PM

    You didn't mention it, but I'm guessing you're looking at the URLs generated in the default UserMailer templates. Those will need an explicit protocol setting, as the Rails routing system (which we use pretty much unaltered) doesn't support what you're looking for in the mailer context (much like it doesn't know what value to use for :host by default in an ActionMailer view).

    You may also want to look into systems like the ssl_requirement plugin - it will automatically redirect incoming plain-HTTP connections to HTTPS.

  • Bryan Larsen

    Bryan Larsen February 19th, 2010 @ 07:20 PM

    • State changed from “new” to “investigating”
  • Matt Jones

    Matt Jones September 21st, 2011 @ 03:34 PM

    • State changed from “investigating” to “open”
    • Milestone set to Hobo 1.4
    • Milestone order changed from “192943” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Attachments

Pages