OAuth: Make the login button display name of custom OAuth provider (#20209)

This commit is contained in:
Dominik Prokop 2019-11-06 16:38:54 +01:00 committed by GitHub
parent 0a78652404
commit df6d8851d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ const loginServices: () => LoginServices = () => ({
},
oauth: {
enabled: config.oauth.generic_oauth,
name: 'OAuth',
name: config.oauth.generic_oauth ? config.oauth.generic_oauth.name : 'OAuth',
icon: 'sign-in',
hrefName: 'generic_oauth',
},