Commit 933a074a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(login_old): Removed #if 0'd code that referenced logins_allowed.

(login): Ditto.  (Bug 151).
parent 9e7087de
/*
* $Id: session.c,v 0.58 2001/11/04 21:03:47 ceder Exp $
* $Id: session.c,v 0.59 2001/11/06 21:39:09 ceder Exp $
* Copyright (C) 1991-1994, 1996-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -120,15 +120,6 @@ login_old (Pers_no pers_no,
CHK_CONNECTION(FAILURE);
GET_P_STAT(pers_p, pers_no, FAILURE);
#if 0
if ( !logins_allowed && !pers_p->privileges.wheel)
{
err_stat = 0;
kom_errno = KOM_LOGIN_DISALLOWED;
return FAILURE;
}
#endif
if ( !is_supervisor(pers_no, ACTPERS, ACT_P) &&
!ENA(wheel, 8) && /* OK -- In an RPC call */
chk_passwd(pers_p->pwd, passwd) == FAILURE )
......@@ -203,15 +194,6 @@ login (Pers_no pers_no,
CHK_CONNECTION(FAILURE);
GET_P_STAT(pers_p, pers_no, FAILURE);
#if 0
if ( !logins_allowed && !pers_p->privileges.wheel)
{
err_stat = 0;
kom_errno = KOM_LOGIN_DISALLOWED;
return FAILURE;
}
#endif
if ( !is_supervisor(pers_no, ACTPERS, ACT_P) &&
!ENA(wheel, 8) && /* OK -- In an RPC call */
chk_passwd(pers_p->pwd, passwd) == FAILURE )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment