opsick
Classes | Functions
user.h File Reference

Contains the opsick_user_metadata struct. More...

#include <stdint.h>
#include <cecies/types.h>
Include dependency graph for user.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  opsick_user_metadata
 

Functions

static int opsick_user_has_2fa_enabled (struct opsick_user_metadata *user_metadata)
 

Detailed Description

Contains the opsick_user_metadata struct.

Author
Raphael Beck

Function Documentation

◆ opsick_user_has_2fa_enabled()

static int opsick_user_has_2fa_enabled ( struct opsick_user_metadata user_metadata)
inlinestatic

Check whether a given user has 2FA enabled or not.

Parameters
user_metadataThe user to check.
Returns
boolean: 0 for false; 1 for true.