entrance: test if there is allready a User

This commit is contained in:
Marcel Hollerbach 2014-07-26 13:01:29 +02:00
parent 15a5500763
commit 6761696f53
1 changed files with 3 additions and 1 deletions

View File

@ -198,11 +198,13 @@ _entrance_display_ready(const char *dname)
}
else
{
//TODO test if there is allready a user loggind in
Entrance_Login *el;
Eina_List *l;
const char *session = NULL;
if (getenv("ENTRANCE_USER"))
return ECORE_CALLBACK_CANCEL;
PT("auth user\n");
entrance_pam_init("entrance", dname, NULL);
#ifdef HAVE_PAM