I'm not sure what are you trying to do, but you are not supposed to know your users' passwords. If your goal is just to force them to use a common credentials for both services you can programmatically create the user's email account when they sign in your app, that's the only moment when you are supposed to have the password in plain text.
IMAP Email
Hi all,
I've been developing an app with laravel and now I have a challenge which I don't know how to solve. Basically I have a general email account ([email protected]). This is an email account on my shared host server where I'll deploy my app. For this account, I write the credentials inside .env file, problem solved.
Now comes the question: Each user, has a personal email account ([email protected]) with its own password. I want my users to use the same password for logging in the app and their own email account. As the passwords in Laravel are hashed and we cannot "dehash" them, how can I keep users' passwords in a safe way inside the app database? My email server doesn't accept hashed passwords, I think...
Thanks!
Regards, Ricardo
Please or to participate in this conversation.