hspsh / whohacks

Who is at Hackerspace Pomorze?
https://whois.at.hsp.sh
GNU General Public License v3.0
13 stars 5 forks source link

create new user when using SSO #48

Closed not7cd closed 2 months ago

not7cd commented 3 years ago

now it just fails when no user with given username is present in database

not7cd commented 2 months ago

@EduKav1813, can you take a look? Now it should be easier to debug with mock-oauth2-server. See README for using it. You should be greeted by a login page with user1 sign-on when using login with SSO.

This is the place to fix this. We should create a user on first login. https://github.com/hspsh/whohacks/blob/d3f310a48cc4d21ee4c197272510c88156d890bb/whois/web.py#L310