NekoWM
A gfxprim proxy backend tiling window manager
Loading...
Searching...
No Matches
Functions
login.h File Reference

An utility to check user password. More...

Go to the source code of this file.

Functions

int neko_check_login (const char *username, const char *passwd)
 Checks for a correct user password.
 
int neko_switch_user (const char *username)
 Switches to an user.
 

Detailed Description

An utility to check user password.

Definition in file login.h.

Function Documentation

◆ neko_check_login()

int neko_check_login ( const char *  username,
const char *  passwd 
)

Checks for a correct user password.

Parameters
usernameAn user name.
passwordAn user password.
Returns
Non-zero if user name and password combination is valid, zero otherwise.

◆ neko_switch_user()

int neko_switch_user ( const char *  username)

Switches to an user.

Parameters
usernameAn user name.
Returns
Zero on success, non-zero on a failure.