Skip to content
New issue

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

How can I change the access Page #170

Open
toppylawz opened this issue May 9, 2020 · 0 comments
Open

How can I change the access Page #170

toppylawz opened this issue May 9, 2020 · 0 comments

Comments

@toppylawz
Copy link

I am actually working on a project based on this powerful LMS of yours. I want it to be a specific school-based which means that nobody can just signup or apply except the staffs and students of that school. This is how I plan to get this solution working, I created a file name choices.py, in this, I created three different tuples named whoisonline(this is the options field that the user will choose from and depending on this he's expected to be redirected accordingly), staffs and students are the store of the emails for the staffs and the students respectively

whoisonline =  (
    ('staff', ('Staff')),
    ('student', ('Student'))
)

and the other one that will have to check the emails of all the staffs and the students are written as follows:

staffs =  (
    ('email1', ('[email protected]')),
    ('email2', ('[email protected]'))
)
students=  (
    ('email3', ('[email protected]')),
    ('email4', ('[email protected]'))
)

so if the email is not part of the lists of emails in the choice.py, then the user will not be allowed to even signup, otherwise, he will be redirected to a page strictly for that group.

My question is, how can I use 'redirect' in this application since it seems that authentication doesn't require 'redirect' to give access to the dashboard.

I will greatly appreciate any guidance that can make me solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant