MCPcopy Create free account
hub / github.com/codecombat/codecombat / onGPlusLoginError

Method onGPlusLoginError

app/views/core/AuthModal.js:237–248  ·  view source on GitHub ↗
(res, jqxhr)

Source from the content-addressed store, hash-verified

235 }
236
237 onGPlusLoginError (res, jqxhr) {
238 if (((jqxhr != null ? jqxhr.status : undefined) === 401) && jqxhr.responseJSON.errorID && (jqxhr.responseJSON.errorID === 'individuals-not-supported')) {
239 forms.setErrorToProperty(this.$el, 'emailOrUsername', $.i18n.t('login.individual_users_not_supported'))
240 } else {
241 if (arguments.length) { errors.showNotyNetworkError(...arguments) }
242 }
243
244 const btn = this.$('#google-login-button')
245 btn.find('.sign-in-blurb').text($.i18n.t('login.sign_in_with_gplus'))
246 btn.attr('disabled', false)
247 if (arguments.length) { return errors.showNotyNetworkError(...arguments) }
248 }
249
250 // Facebook
251

Callers 2

successMethod · 0.95
errorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected