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

      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.

      danD 1 Reply Last reply Reply Quote 2
      • danD
        dan @gean.ivamoto
        last edited by

        @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 Reply Quote 0
        • G
          gean.ivamoto @dan
          last edited by

          @dan I opened the request. Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post