wainuiomata / sambal

Experimental web admin for Samba and Active Directory domains
https://wainuiomata.com
GNU General Public License v3.0
1 stars 1 forks source link

bug: when using traversal the login screen will get None for request.matched_route and crash #28

Closed robvdl closed 8 months ago

robvdl commented 8 months ago

Simple fix should be just to do an and

if request.matched_route and request.matched_route.name == "login":
robvdl commented 8 months ago

It seems we actually also need to look at request.traversed which is a tuple if a traversed url is hit but requires login.

it hits the login view, and instead of request.matched_routed being not None, request.traversed is not None instead.