We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django auth brugere skalere ikke. Det burde skrives sammen med IDM og man skal kunne logge ind med alle ens aliaser.
Se også #177 om KBESTs adgang.
The text was updated successfully, but these errors were encountered:
Jeg har netop oprettet brugere til BEST via følgende script (pastet ind i manage.py shell).
from tkweb.apps.idm.models import * from django.contrib.auth.models import User, Group titles = 'CERM FORM INKA KASS PR SEKR VC'.split() usernames = [...] User.objects.filter(username__in=usernames).delete() passwords = [...] fudo = User.objects.get(username='fudo') groups = list(fudo.groups.exclude(name='NF')) for root, username, password in zip(titles, usernames, passwords): t = Title.objects.get(period=2018, root=root) first, last = t.profile.name.split(' ', 1) user = User(username=username, first_name=first, last_name=last, is_staff=True, email=t.profile.email) user.set_password(password) user.save() user.groups.set(groups) user.groups.add(Group.objects.get(name=root))
Sorry, something went wrong.
No branches or pull requests
Django auth brugere skalere ikke. Det burde skrives sammen med IDM og man skal kunne logge ind med alle ens aliaser.
Se også #177 om KBESTs adgang.
The text was updated successfully, but these errors were encountered: