Ad Widget

Collapse

How remove "Remember me for 30 days" selection from login page? (v. 7.x)?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixuser39393
    Junior Member
    • Jan 2021
    • 29

    #1

    How remove "Remember me for 30 days" selection from login page? (v. 7.x)?

    As topic says: How I remove "Remember me for 30 days" from login page? (v. 7.x)?
  • Answer selected by Donkey at 15-11-2024, 16:04.
    Julianna Wilamowska
    Member
    • Oct 2024
    • 34

    Hi you can change it in /usr/share/zabbix/include/views/general.login.php.
    Find lines:
    ->addItem(
    (new CCheckBox('autologin'))
    ->setLabel(_('Remember me for 30 days'))
    ->setChecked($data['autologin'])
    )

    And comment them.
    Hope that helps.

    Comment

    • Julianna Wilamowska
      Member
      • Oct 2024
      • 34

      #2
      Hi you can change it in /usr/share/zabbix/include/views/general.login.php.
      Find lines:
      ->addItem(
      (new CCheckBox('autologin'))
      ->setLabel(_('Remember me for 30 days'))
      ->setChecked($data['autologin'])
      )

      And comment them.
      Hope that helps.

      Comment

      • zabbixuser39393
        Junior Member
        • Jan 2021
        • 29

        #3
        Thanks, that did remove autologin selection... But... Logout timer seems not to work. Bug or not? Version 7.0.5

        Comment

        • Frank_Eckhardt
          Junior Member
          • May 2025
          • 1

          #4
          That doesn't help.
          Unfortunately, Remember me for 30 days is always on -> Bug 1 ?
          Remember me for 30 days will change the profile of the user so that automatic logout is uncheckt.
          At the next normal login is not recheckt it again ->Bug 2?
          So there is no point in simply hiding the option.
          Bugreport?
          Version 7.0.12

          Comment

          • Aer0
            Junior Member
            • Sep 2024
            • 25

            #5
            Hello everyone.

            I didn't find that path. I use NGINX as web, is that suitable for it?

            Comment

            • Donkey
              Junior Member
              • Jun 2024
              • 16

              #6
              nginx is fine. There was a minoor version update which added another folder to the path. Try
              /usr/share/zabbix/ui/include/views/general.login.php

              Comment

              • Aer0
                Junior Member
                • Sep 2024
                • 25

                #7
                Originally posted by Donkey
                nginx is fine. There was a minoor version update which added another folder to the path. Try
                /usr/share/zabbix/ui/include/views/general.login.php
                That helped! Thank you!

                But that sounds like surgery way. Maybe there is an easy way just to drop off the default checkbox for the new pages?
                Attached Files

                Comment

                • kyus
                  Senior Member
                  • Feb 2024
                  • 173

                  #8
                  Originally posted by Aer0
                  ...Maybe there is an easy way just to drop off the default checkbox for the new pages?
                  You can simply comment the line:

                  ->setChecked($data['autologin'])

                  This should make the box unchecked by default.

                  Comment

                  • Aer0
                    Junior Member
                    • Sep 2024
                    • 25

                    #9
                    Thank you, guys.

                    All your advices realy helped me.

                    Just for not not create a new topic, is there any way to hard fix Auto-logout parameters in user settings?

                    We want to make a single setting for that option for all our zabbix users. Unfortunately that option can be changed by any user personally.
                    Attached Files

                    Comment

                    Working...