I followed Laravels docs (link) about Email verification. Everything seems to work except for a 403 - invalid signature. This errors shows when clicking on the email link. I'm using shared hosting.
Url is similar to this:
[..]email/verify/21?expires=154270[..]&signature=920dcb9ac2fbf5[..]
would appreciate all the help I could get! Thanks!
Here is the answer: https://stackoverflow.com/a/44839664
You have to generate a key: php artisan key:generate
Related
I am trying to edit Laravel default email verification message.
I have tried publishing the notification and mail resources.
php artisan vendor:publish --tag=laravel-notifications
php artisan vendor:publish --tag=laravel-mail
New folders called mail and notification were created in resource>views>vendor but I haven't been able to find the file which holds the codes for the message in either of the folders. I found a file that seems like the one in vendor>laravel>framework>src>Illuminate>Auth>Notification which is called VerifyEmail but I'm not sure if I'm suppose to change this file since I couldn't find any article online talking about this file.
My Laravel version is 7.15.0.
Any help would be appreciated as I have tried multiple methods with no success.
Thank you in advance.
I am trying to send email to user for forget password using rest API,
here is my controller:
enter image description here
strong text
put when I call this forget function by my Api on postman it gives this error :
'laravel.password_resets' doesn't exist
how can I solve this issue
Please run
php artisan migrate
There is a possibility that your would have dropped the database table.
Php artisan migrate: fresh
I have a problem with Laravel 5.7.22, I tried to activate the verification with the email and I get the message that:
A fresh verification link has been sent to your email address.
how it's properly working at least the part that send the emails with the verification link but when I click the generated link I get the following page:
I have tried to erase the project and reinstall it, and I also tried to generate the signature key with this command:
php artisan key:generate
that I have found in this other question, but that didn't work, I don't know what could be causing this issue.
I also tried to debug the the function hasValidSignature in the file UrlGenerator from Laravel, just because I read that it could help, but it doesn't make sense, I haven't event altered the middleware or something I'm just with the laravel routes that it generates by default.
The generated link looks something like this.
https://www.example.com/email/verify/1?expires=1548527438&signature=daebab97afbb2da6a0f37615bc3db7e59db9c59e704d185addcf88adf46e8f6d
I also have configured my .env file properly and the files under the config folder just for security.
Help me please. Now i'm playing around Botman Studio in Larvel. I'm using cod from example. It works great with web interface. I want use it with Telegram. I install drivers, get token. When i try to get registration this way:
"php artisan botman:telegram:register"
It gets error:
ErrorException : file_get_contents(https://api.telegram.org/bot/setWebhook?url=https://83255e3c.ngrok.io/botman): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Web interface work well with https://83255e3c.ngrok.io/botman/tinker (it use same webhook).
I register webhook on telegram this way:
curl -d "url=https://83255e3c.ngrok.io/botman" "https://api.telegram.org/bot524662111:AAF3syuVVVVVVVVV35Goh4lR6pxx1yLY/setWebhook"
Telegram told me Ok.
Now i send message to bot using telegram.
I see in ngrok's logo it comes as well as from webinteface, but bot doesn't reply. And he does work well wen i send message through web.
Help me please and sorry for my english. I will study hard. I promise.
In the error message you can see, that the YOUR-TELEGRAM-TOKEN didn't set.
The link should be like:
https://api.telegram.org/bot<YOUR-TELEGRAM-TOKEN>/setWebhook?url=https://83255e3c.ngrok.io/botman
Try set token on configuration:
you can find the configuration file located under config/botman/telegram.php
You can find it in the official documentation https://botman.io/2.0/driver-telegram
write below code in .env file:
TELEGRAM_TOKEN=telegram bot token here
I have just switch to new version of laravel i.e. 5.3 for my new project.
Once I need to send registration mail to my portal customer, where registration mail contains account activation link where this mail is sent using Mail::queue.
I am generating that link using url("activate/$random_string");
and which always prints http://localhost/activate/$random_string_value
but what i wants is,
http://localhost/project/public/activate/$random_string_value
or
http://192.168.0.45/laravel/public/activate/$random_string_value
(above result i am getting till laravel 5.2)
i have set APP_URL value in .env as well and in config/app.php as well,
I have tried php artisan config:clear and php artisan config:cache
Can anybody help me to sort out this issue. I have one possible solution is to use env('APP_URL') to genrate same url.
I think your url need to update like:
url("activate/".$random_string);
Hope this work for you!