]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
35375afe | 2 | |
07630cea | 3 | #include "login-util.h" |
cf0fbc49 | 4 | #include "string-util.h" |
4b549144 ZJS |
5 | |
6 | bool session_id_valid(const char *id) { | |
4b549144 | 7 | |
8b0849e9 LP |
8 | if (isempty(id)) |
9 | return false; | |
10 | ||
11 | return id[strspn(id, LETTERS DIGITS)] == '\0'; | |
4b549144 | 12 | } |