FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to set the default for "Keep me signed in"

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    4
    5
    874
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gg-dev
      last edited by

      I'd like this to be off by default, as I think that it's more secure this way. How do I set the default?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @gg-dev
        last edited by

        @gg-dev

        I think the correct approach is to modify your template: https://fusionauth.io/docs/v1/tech/themes/template-variables#oauth-authorize

        set rememberDevice to false. You could even hide it and never let the user set it to true.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        G M 2 Replies Last reply Reply Quote 1
        • G
          gg-dev @dan
          last edited by

          @dan

          Sorry about the delayed reply, I forgot to sub again (I've turned this on by default now in the forum).

          I did try to modify the template, but IIRC (it was a while ago now), it didn't persist correctly after a failed submission, and I got really confused by the logic in _input_checkbox.

          I might try again in future, but right now it's not a high priority.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • M
            mo.mustkem @dan
            last edited by

            @dan

            set rememberDevice to false.

            Could you please assist what is the correct place to set this variable?

            • Assign this variable inside template
              [#assign rememberDevice = false /]

            Or

            • Can be set false from Admin panel?

            Any help is greatly appreciated. Thanks!

            mark.robustelliM 1 Reply Last reply Reply Quote 0
            • mark.robustelliM
              mark.robustelli @mo.mustkem
              last edited by

              @mo-mustkem It is a Theme Template Variable. Please check out https://fusionauth.io/docs/customize/look-and-feel/template-variables#oauth-authorize. rememberDevice is in /oauth2/authorize

              1 Reply Last reply Reply Quote 0
              • First post
                Last post