AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'lib.pam_backend.PamBackend',
)

AUTH_USER_MODEL = 'accounts.User'

LOGIN_URL = '/login'

PAM_SERVICES = {
    'default': 'login',
    'csu': 'csu'
}

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'lib.pam_backend.PamBackend',
)

AUTH_USER_MODEL = 'accounts.User'

LOGIN_URL = '/login'

PAM_SERVICES = {
    'default': 'curc-twofactor-duo',
    'csu': 'csu'
}

Change the default pam login service
Change the default pam login service

  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
      'lib.pam_backend.PamBackend',
  )
  
  AUTH_USER_MODEL = 'accounts.User'
  
  LOGIN_URL = '/login'
  
  PAM_SERVICES = {
-     'default': 'login',
+     'default': 'curc-twofactor-duo',
      'csu': 'csu'
  }
  
Change the default pam login service
## Code Before:
AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'lib.pam_backend.PamBackend',
)

AUTH_USER_MODEL = 'accounts.User'

LOGIN_URL = '/login'

PAM_SERVICES = {
    'default': 'login',
    'csu': 'csu'
}

## Instruction:
Change the default pam login service
## Code After:
AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'lib.pam_backend.PamBackend',
)

AUTH_USER_MODEL = 'accounts.User'

LOGIN_URL = '/login'

PAM_SERVICES = {
    'default': 'curc-twofactor-duo',
    'csu': 'csu'
}
