fix #1126 Cause type error by visiting /login/finishAuthentication/<inse...

...rt string here>