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

    How can I check if user has set password?

    Scheduled Pinned Locked Moved
    Q&A
    0
    2
    1.7k
    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.
    • A
      AliMirlou
      last edited by AliMirlou

      Hi,

      I sent many emails to newly registered users to either set their password (if they haven't provided it in our registration form) or only verify their email.

      An issue happened with our email service provider and some of the emails were not sent and now I have to check if users already have a password (to only send them a verification email) or if they still haven't set their password (to send them a password set email).

      I checked the value of "passwordChangeRequired" field of the users and none of them were true, which I believe it has to be for users who have been sent a password set email but they still haven't set it. Because it is required for them to change their password anyway, otherwise they wouldn't be able to login.

      Can anyone help me with this issue?

      FusionAuth version: 1.27.2

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        You could look at the password last update timestamp (passwordLastUpdateInstant) which is an attribute on the user.

        See if there's been any change since the initial email send (or since the issue). If there had been no change, you should be able to resend the email.

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

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