I encountered an issue with information not displaying Immediately.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lj4353
    Senior Member
    • Nov 2023
    • 114

    I encountered an issue with information not displaying Immediately.

    I encountered the following issue when creating a new user:
    1. The new user information, such as email or phone number, set through the code, doesn't show up immediately on the page after creating the user. I have to make some modifications to the user information and resubmit it for it to display properly. I've tried using the 'Before Save Script,' but it doesn't work.
    2. ​By using code, I set the desired 'password' and 'passwordConfirm' properties, both of which are of the 'Password' type. However, when I try to log in, I'm informed that the username or password is incorrect. I've attempted to use the 'Before Save Script,' but it hasn't worked. Is there a way to resolve this
  • yuri
    Member
    • Mar 2014
    • 8467

    #2
    You need to hash passwords before storing. There's the function for this: https://docs.espocrm.com/administrat.../#passwordhash

    BTW. passwordConfirm is not needed.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • lj4353
      lj4353 commented
      Editing a comment
      Problem solved, thank you. I'm confused about the first issue. I saw the user email and phone that I input by coding, but they quickly flashed on the page and disappeared.How come?
  • yuri
    Member
    • Mar 2014
    • 8467

    #3
    Maybe because emailAddressData and phoneNumberData are set with empty arrays (passed from the frontend). Maybe setting them with null will help.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...