Method code for $security_lib.check_userdb_with_optional()

[Turn off line numbering]
  1: arg interface;
  2: var user, auth;
  3: 
  4: if (!(| (auth = interface.get_info('browser_auth)) |))
  5:     return 0;
  6: if (!(| (user = $user_db.search(auth[2][1])) |))
  7:     return 0;
  8: if (!user.check_password(auth[2][2]))
  9:     return 0;
 10: interface.set_info('run_as, user);
 11: return 1;

// Brad Roberts
// Bruce Mitchener, Jr.
// Created 19-May-1997 as a part of ColdCore, see: @help Credit

Tlon