ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class NullLoginManager.NullLoginManager(system, config)

This login manager will not take action on the system, but will implement the whole interface assuming a user is always logged in.

can_login()

Always returns 1 since it assumes a user is logged in.

is_logged_in()

Always returns True, as this Login Manager assumes a user is logged in.

login()

Just returns True as though the login were successful.

logout()

Just return False as logout is not possible with this Login Manager.

needs_config()

Always return False as there is no configuration that can be done via this Login Manager.

restart()

Just return False as restart is not possible with this Login Manager.

try_config()

Just return True as all configuration options are already set.