Add redirects and adapt to updated API
Merge pull request #38 from iver56/login-role

Add redirects and adapt to updated login API