Ouath Login to Mattermost broken with useless error message if terms are not accepted
Summary
oauth login not possible if terms are not accepted
Steps to reproduce
- Install Gitlab omnibus
- Enable mattermost
- Check that Login via Gitlab works
- Create a new Gitlab user
- Switch to gitlab and enable
admin/application_settings
-> Terms of service - switch to the newly created gitlab users (terms not accepted yet)
- open
mattermosturi.ltd
- Use button Login with gitlab
- Useless error message, that userdata can't be transfered
What is the current bug behavior?
Login fails due to missing acceptance of terms of service
What is the expected correct behavior?
Ask for accepting terms of service
Possible fixes
manuelly go to your gitlab instance, accept terms
then the login works as usual.