From 6d3ef915261be7481572411ef2f1b547e8f9b820 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Wed, 9 Jan 2019 03:05:37 +0900 Subject: [PATCH] Adding missing groups to tokens. Also removing a few deprecated FIXMEs. --- src/passwd.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/passwd.cr b/src/passwd.cr index 6811d60..03215ea 100644 --- a/src/passwd.cr +++ b/src/passwd.cr @@ -59,7 +59,6 @@ class Passwd def get_user(uid : Int32) : AuthD::User? each_user do |user| if user.uid == uid - # FIXME: Check user groups and register them here. set_user_groups user return user @@ -76,8 +75,9 @@ class Passwd each_user do |user| if user.login == login - # FIXME: XXX: HASH!!!!! if user.password_hash == hash + set_user_groups user + return user end