Skip to content

[Question] Send registration email when users login using LDAP for the first time #16178

Closed
@rlukata

Description

@rlukata

I have setup Gitea to only use LDAP bind as authentication store, and users only need to enter their username/email and their ldap password to login and get an account created.

Is there a way to send a registration email to users who login via LDAP for the first time?

Here's the service snippet of my app.ini:

[service]
SHOW_REGISTRATION_BUTTON	  = false
REGISTER_EMAIL_CONFIRM            = true
ENABLE_NOTIFY_MAIL                = true
DISABLE_REGISTRATION              = false
ALLOW_ONLY_EXTERNAL_REGISTRATION  = true
ENABLE_CAPTCHA                    = false
REQUIRE_SIGNIN_VIEW               = true
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING       = true
NO_REPLY_ADDRESS                  = noreply.localhost
MINIMUM_KEY_SIZE_CHECK		  = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions