Problem/Motivation

When the user gets blocked by ip address the error message set in module settings is not used. There is a hard coded error message that just says "Error message" in the validation function for the registration form:
$form_state->setErrorByName('', t('Error Message'));

Steps to reproduce

Register a user that gets blocked by ip address.

Proposed resolution

Use the error message from configured in module settings.

CommentFileSizeAuthor
#3 spambot-hard-coded-error-3185759.patch603 bytesvikom

Comments

Vikom created an issue. See original summary.

vikom’s picture

Issue summary: View changes
vikom’s picture

StatusFileSize
new603 bytes
danchadwick’s picture

Status: Active » Reviewed & tested by the community

Tested. Works as intended.

kala4ek’s picture

Assigned: Unassigned » kala4ek

  • Vikom authored 378e8e8 on 8.x-1.x
    Issue #3185759 by Vikom, DanChadwick, kala4ek: Hard coded error message...
kala4ek’s picture

Assigned: kala4ek » Unassigned
Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.