More SSH management.
[cas.git] / src / accounts / models.py
1 from cas_provider.signals import cas_collect_custom_attributes
2
3
4 def user_attributes(sender, user, **kwargs):
5     return {
6         'firstname': user.first_name,
7         'lastname': user.last_name,
8         'cn': ' '.join((user.first_name, user.last_name)),
9         'email': user.email,
10     }
11 cas_collect_custom_attributes.connect(user_attributes)