diff options
Diffstat (limited to 'src/login/login-shared.c')
-rw-r--r-- | src/login/login-shared.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/login/login-shared.c b/src/login/login-shared.c new file mode 100644 index 0000000000..ff13c28861 --- /dev/null +++ b/src/login/login-shared.c @@ -0,0 +1,8 @@ +#include "login-shared.h" +#include "def.h" + +bool session_id_valid(const char *id) { + assert(id); + + return id + strspn(id, LETTERS DIGITS) == '\0'; +} |