summaryrefslogtreecommitdiff
path: root/src/login/login-shared.c
blob: ff13c28861cc50b6fb94136d52a63e19f7c3b573 (plain)
1
2
3
4
5
6
7
8
#include "login-shared.h"
#include "def.h"

bool session_id_valid(const char *id) {
        assert(id);

        return id + strspn(id, LETTERS DIGITS) == '\0';
}