andi-nl / ANDI-frontend

Advanced Neuropsychological Diagnostics Infrastructure frontend
1 stars 4 forks source link

User management + login/logout using Django #105

Closed jvdzwaan closed 8 years ago

jvdzwaan commented 8 years ago

First version of user management and logging in and out functionality for the ANDI frontend.

Can you have a look? There are installation instructions in the readme. Run python manage.py runserver instead of grunt serve. No need to merge yet, but it would be nice if you could try it.

mkuzak commented 8 years ago

@jvdzwaan thank you, I'm looking at the merge conflicts. It would help if you pulled and merged the changes from current master. I have removed the PanelCtrl.js but it comes back in your code.

jvdzwaan commented 8 years ago

@mkuzak I think I did what you asked :)

jvdzwaan commented 8 years ago

Is it correct that the file /utils/checkTestVarInfo.js is currently not used?

mkuzak commented 8 years ago

It is a standalone script used to validate test variable information table.

jvdzwaan commented 8 years ago

Ah oke. Should you be able to run it in the webserver? It doesn;t really matter for now, it can always be moved to a different place later.

mkuzak commented 8 years ago

It should be run before running the webserver when they update test variable info, to make sure it's valid.

mkuzak commented 8 years ago

Thank you, no conflicts now 👍 I'll test it locally in your branch and merge when all is fine.

mkuzak commented 8 years ago

I've created a user account, but when I try to login I get the answer: "It seems your account has been disabled. If you feel that injustice has been done to you, feel free to contact the administrators to find out why" Where can I get more information on user management?

jvdzwaan commented 8 years ago

Did you start the dummy mailserver? It should show a link with an activation code. If you paste the /acounts/...... part behind localhost:8000 your account should be activated.

You can probably also do it in the admin module, which can be found at localhost:8000/admin To access the admin, you need to create a superuser: python manage.py createsuperuser You might need to run python manage.py check_permissions afterwards


From: Mateusz Kuzak notifications@github.com Sent: Wednesday, July 13, 2016 11:33:01 AM To: andi-nl/ANDI-frontend Cc: Janneke van der Zwaan; Mention Subject: Re: [andi-nl/ANDI-frontend] User management + login/logout using Django (#105)

I've created a user account, but when I try to login I get the answer: "It seems your account has been disabled. If you feel that injustice has been done to you, feel free to contact the administrators to find out why" Where can I get more information on user management?

� You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/andi-nl/ANDI-frontend/pull/105#issuecomment-232305429, or mute the threadhttps://github.com/notifications/unsubscribe/AEkSoVLioxYsWexcj7L2l68hhcA-S7Iuks5qVLDNgaJpZM4JLLT8.

mkuzak commented 8 years ago

Thank you. I missed what was happening in the terminal window.

mkuzak commented 8 years ago

Actually you cannot activate from admin interface, but using the url with /accounts/activate works.