Skip to content

Notify admins when new user registers  #1704

Closed
@gianbisso

Description

With these configurations in .env:
DEFAULT_REGISTRATION=approval
ALLOW_MAIL_NOTIFICATIONS=true
SMTP_* =

when a new user try to register they get an error message in the browser saying sending mail to admins failed.
in log file i find:
ERROR: [2ede51c2-818b-4155-ac0a-be0f5e9cbfc9] Support: Error in email delivery: PG::I
nvalidColumnReference: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear
in select list
LINE 1: ...= $2 AND "role_permissions"."value" = $3 ORDER BY "roles"."p...
^
: SELECT DISTINCT "roles"."name" FROM "roles" LEFT OUTER JOIN "role_permissions" ON "
role_permissions"."role_id" = "roles"."id" WHERE "roles"."provider" = $1 AND "role_pe
rmissions"."name" = $2 AND "role_permissions"."value" = $3 ORDER BY "roles"."priority
" ASC

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions