
from ._base import Config


class PasswordConfig(Config):
    """Password login configuration
    """

    def read_config(self, config):
        password_config = config.get("password_config", {})
        self.password_enabled = password_config.get("enabled", True)
        self.pepper = password_config.get("pepper", "")

    def default_config(self, config_dir_path, server_name, **kwargs):
        return """
        # Enable password for login.
        password_config:
           enabled: true
           # Uncomment for extra security for your passwords.
           # DO NOT CHANGE THIS AFTER INITIAL SETUP!
           #pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
        """

from ._base import Config


class PasswordConfig(Config):
    """Password login configuration
    """

    def read_config(self, config):
        password_config = config.get("password_config", {})
        self.password_enabled = password_config.get("enabled", True)
        self.pepper = password_config.get("pepper", "")

    def default_config(self, config_dir_path, server_name, **kwargs):
        return """
        # Enable password for login.
        password_config:
           enabled: true
           # Uncomment for extra security for your passwords.
           # Change to a secret random string.
           # DO NOT CHANGE THIS AFTER INITIAL SETUP!
           #pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
        """
Add comment to prompt changing of pepper
Add comment to prompt changing of pepper

  
  from ._base import Config
  
  
  class PasswordConfig(Config):
      """Password login configuration
      """
  
      def read_config(self, config):
          password_config = config.get("password_config", {})
          self.password_enabled = password_config.get("enabled", True)
          self.pepper = password_config.get("pepper", "")
  
      def default_config(self, config_dir_path, server_name, **kwargs):
          return """
          # Enable password for login.
          password_config:
             enabled: true
             # Uncomment for extra security for your passwords.
+            # Change to a secret random string.
             # DO NOT CHANGE THIS AFTER INITIAL SETUP!
             #pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
          """
Add comment to prompt changing of pepper
## Code Before:

from ._base import Config


class PasswordConfig(Config):
    """Password login configuration
    """

    def read_config(self, config):
        password_config = config.get("password_config", {})
        self.password_enabled = password_config.get("enabled", True)
        self.pepper = password_config.get("pepper", "")

    def default_config(self, config_dir_path, server_name, **kwargs):
        return """
        # Enable password for login.
        password_config:
           enabled: true
           # Uncomment for extra security for your passwords.
           # DO NOT CHANGE THIS AFTER INITIAL SETUP!
           #pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
        """
## Instruction:
Add comment to prompt changing of pepper
## Code After:

from ._base import Config


class PasswordConfig(Config):
    """Password login configuration
    """

    def read_config(self, config):
        password_config = config.get("password_config", {})
        self.password_enabled = password_config.get("enabled", True)
        self.pepper = password_config.get("pepper", "")

    def default_config(self, config_dir_path, server_name, **kwargs):
        return """
        # Enable password for login.
        password_config:
           enabled: true
           # Uncomment for extra security for your passwords.
           # Change to a secret random string.
           # DO NOT CHANGE THIS AFTER INITIAL SETUP!
           #pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
        """