| 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 | |