File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def is_accessible(self):
1616
1717 def inaccessible_callback (self , name , ** kwargs ):
1818 # redirect to login page if user doesn't have access
19- return redirect (url_for ("auth .login" , next = request .url ))
19+ return redirect (url_for ("shopyo_auth .login" , next = request .url ))
2020
2121
2222class MyAdminIndexView (AdminIndexView ):
@@ -25,16 +25,16 @@ def is_accessible(self):
2525
2626 def inaccessible_callback (self , name , ** kwargs ):
2727 # redirect to login page if user doesn't have access
28- return redirect (url_for ("auth .login" , next = request .url ))
28+ return redirect (url_for ("shopyo_auth .login" , next = request .url ))
2929
3030 @expose ("/" )
3131 def index (self ):
3232 if not current_user .is_authenticated and current_user .is_admin :
33- return redirect (url_for ("auth .login" ))
33+ return redirect (url_for ("shopyo_auth .login" ))
3434 return super ().index ()
3535
3636 @expose ("/dashboard" )
3737 def indexs (self ):
3838 if not current_user .is_authenticated and current_user .is_admin :
39- return redirect (url_for ("auth .login" ))
39+ return redirect (url_for ("shopyo_auth .login" ))
4040 return super ().index ()
You can’t perform that action at this time.
0 commit comments