Mozzo1000 / movielst

:movie_camera: Everything about your movies within the command line.
Other
0 stars 1 forks source link

Add login_required check on all routes #28

Closed Mozzo1000 closed 5 years ago

Mozzo1000 commented 5 years ago

Routes that needs this implemented :

Check code :

if not session.get('logged_in') and config.get_setting('Web', 'require_login') == "True":
    return login()
else:
Mozzo1000 commented 5 years ago

Not doing the API endpoint, it is used for internal functions as well and will break if require_login is true.