Method code for $security_lib.check_userdb_with_optional()

[Turn on line numbering]
arg interface;
var user, auth;

if (!(| (auth = interface.get_info('browser_auth)) |))
    return 0;
if (!(| (user = $user_db.search(auth[2][1])) |))
    return 0;
if (!user.check_password(auth[2][2]))
    return 0;
interface.set_info('run_as, user);
return 1;

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

Tlon