def require_change_password(self):
 if (('desktop.auth.backend.AllowFirstUserDjangoBackend' in desktop.conf.AUTH.BACKEND.get()) and self.first_login and desktop.conf.AUTH.CHANGE_DEFAULT_PASSWORD.get()):
  return True

def require_change_password ( self ) : if ( ( 'desktop.auth.backend.AllowFirstUserDjangoBackend' in desktop . conf . AUTH . BACKEND . get ( ) ) and self . first_login and desktop . conf . AUTH . CHANGE_DEFAULT_PASSWORD . get ( ) ) : return True
return true if user has never logged in before .