• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
877
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 23 May 2022, 12:25

    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?

    D 1 Reply Last reply 26 May 2022, 14:39 Reply Quote 0
    • D
      dan @gg-dev
      last edited by 26 May 2022, 14:39

      @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 24 Jun 2022, 14:30 Reply Quote 1
      • G
        gg-dev @dan
        last edited by 24 Jun 2022, 14:30

        @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 9 Nov 2023, 12:49

          @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!

          M 1 Reply Last reply 9 Nov 2023, 20:49 Reply Quote 0
          • M
            mark.robustelli @mo.mustkem
            last edited by 9 Nov 2023, 20:49

            @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