ESAPI-C 1.0
The OWASP Enterprise Security API for C

user.c File Reference

A User module implementation. More...

#include <string.h>
#include "user.h"

Go to the source code of this file.

Functions

void add_role (user *u, char *role)
void add_roles (user *u, char **roles)
void remove_role (user *u, char *role)
int is_user_in_role (user *u, char *role)
int change_user_password (user *u, char *new_passwd1, char *new_passwd2)
char * reset_password (user *u)
int lock_user (user *u)
 Get the user id for the given user.
int unlock_user (user *u)
 Unlocks the user.

Detailed Description

A User module implementation.

Definition in file user.c.


Function Documentation

int lock_user ( user u)

Get the user id for the given user.

Returns:
A long integer representing a unique identifier for the given user, or -1 if the user is NULL. Set the current user of this application to the given user. Clears the given user. Locks the user.

Definition at line 98 of file user.c.

 All Data Structures Files Functions Variables Typedefs Defines