• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Can't use sendSetPasswordEmail when creating a user without user.email

Scheduled Pinned Locked Moved Unsolved
Q&A
2
3
2.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    gean.ivamoto
    last edited by 23 Nov 2023, 20:50

    I'm experiencing an issue with the sendSetPasswordEmail flag in FusionAuth. My users authenticate using the username only, and I store their email information in the user.data.email field.

    When attempting to create a user with the sendSetPasswordEmail as true I receive this error:

    {
        "fieldErrors": {
            "user.email": [
                {
                    "code": "[required]user.email",
                    "message": "You must specify the [user.email] property when [sendSetPasswordEmail] is equals to [true]."
                }
            ]
        },
        "generalErrors": []
    }
    

    Is it possible for FusionAuth to send the email using "user.data.email" instead of "user.email"?

    Unfortunately, I cannot use "user.email" as there are some users with duplicated emails, and this field is unique.

    I'm using FusionAuth cloud 1.48.1.

    Thank you for your help.

    D 1 Reply Last reply 25 Nov 2023, 19:42 Reply Quote 2
    • D
      dan @gean.ivamoto
      last edited by 25 Nov 2023, 19:42

      @gean-ivamoto Hmm. Seems like a good feature request. Can you please file one here: https://github.com/FusionAuth/fusionauth-issues/issues/

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      G 1 Reply Last reply 30 Nov 2023, 14:38 Reply Quote 0
      • G
        gean.ivamoto @dan
        last edited by 30 Nov 2023, 14:38

        @dan I opened the request. Thanks!

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post