mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 00:43:38 +00:00
xs_base64_dec() can now be used as a string, so do it.
This commit is contained in:
parent
6e28a810e1
commit
abca46d037
1 changed files with 1 additions and 5 deletions
6
html.c
6
html.c
|
@ -24,11 +24,7 @@ int login(snac *snac, char *headers)
|
|||
xs *s1 = xs_crop(xs_dup(auth), 6, 0);
|
||||
xs *s2 = xs_base64_dec(s1, &sz);
|
||||
|
||||
/* copy to asciiz it */
|
||||
xs *s3 = calloc(sz + 1, 1);
|
||||
memcpy(s3, s2, sz);
|
||||
|
||||
xs *l1 = xs_split_n(s3, ":", 1);
|
||||
xs *l1 = xs_split_n(s2, ":", 1);
|
||||
|
||||
if (xs_list_len(l1) == 2) {
|
||||
logged_in = check_password(
|
||||
|
|
Loading…
Reference in a new issue