我的 Gmail 帐户中没有收到确认电子邮件,但在服务器中我可以看到确认链接
这是我的服务器的日志。我的 Gmail 中没有收到任何确认消息,但在服务器中我找到了确认链接,
Started POST "/users/sign_in" for ::1 at 2022-02-21 14:49:05 +0500
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"c8NHhHXHicKqOpfe0a8VZURCuYESM0PjzeldzVcgqJqOfuWH2uS8KUT/I0LRQiJQ3qNux9B5+l6h9H/pNSSzxA==", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "[email protected]"], ["LIMIT", 1]]
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/dashboard
Completed 302 Found in 290ms (ActiveRecord: 0.4ms)
Started GET "/dashboard" for ::1 at 2022-02-21 14:49:06 +0500
Processing by HomeController#dashboard as HTML
Rendering home/dashboard.html.erb within layouts/application
Rendered home/dashboard.html.erb within layouts/application (0.3ms)
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:15
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.1ms)
Started DELETE "/users/sign_out" for ::1 at 2022-02-21 14:49:08 +0500
Processing by Devise::SessionsController#destroy as HTML
Parameters: {"authenticity_token"=>"SnDHlGHRWTVad5WMCmMYUuHUmOOblh0jUgHHMCUlq+LVeavIRTsEUnbOocJyc1A8CJfQyqyitDugA9lESQVgFg=="}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
(0.1ms) begin transaction
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
(0.1ms) commit transaction
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
Started GET "/" for ::1 at 2022-02-21 14:49:08 +0500
Processing by HomeController#homepage as HTML
Rendering home/homepage.html.erb within layouts/application
Rendered home/homepage.html.erb within layouts/application (0.5ms)
Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.0ms)
我不知道为什么会发生这种情况,有人可以告诉我如何解决此问题吗?
Here is the log of my server. I didn't receive any confirmation message in my Gmail but in the server I found confirmation link
Started POST "/users/sign_in" for ::1 at 2022-02-21 14:49:05 +0500
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"c8NHhHXHicKqOpfe0a8VZURCuYESM0PjzeldzVcgqJqOfuWH2uS8KUT/I0LRQiJQ3qNux9B5+l6h9H/pNSSzxA==", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "[email protected]"], ["LIMIT", 1]]
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/dashboard
Completed 302 Found in 290ms (ActiveRecord: 0.4ms)
Started GET "/dashboard" for ::1 at 2022-02-21 14:49:06 +0500
Processing by HomeController#dashboard as HTML
Rendering home/dashboard.html.erb within layouts/application
Rendered home/dashboard.html.erb within layouts/application (0.3ms)
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:15
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.1ms)
Started DELETE "/users/sign_out" for ::1 at 2022-02-21 14:49:08 +0500
Processing by Devise::SessionsController#destroy as HTML
Parameters: {"authenticity_token"=>"SnDHlGHRWTVad5WMCmMYUuHUmOOblh0jUgHHMCUlq+LVeavIRTsEUnbOocJyc1A8CJfQyqyitDugA9lESQVgFg=="}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
(0.1ms) begin transaction
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
(0.1ms) commit transaction
↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
Started GET "/" for ::1 at 2022-02-21 14:49:08 +0500
Processing by HomeController#homepage as HTML
Rendering home/homepage.html.erb within layouts/application
Rendered home/homepage.html.erb within layouts/application (0.5ms)
Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.0ms)
I don't know why it's happening can anybody tell me how I can resolve this issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有看到您的申请已发送实际电子邮件。您是否正确设置了设备可确认的型号?还要确保您的邮件程序配置正确。为了接收确认电子邮件,您需要为您的用户模型设置 :confirmable 模型。以下是有关如何在 devise gem 中设置 :confirmable 模型的说明: https://github.com/heartcombo/devise/wiki/How-To%3A-Add-%3Aconfirmable-to-Users
I dont see that actual email has been sent from your application. Did you setup devise confirmable model correctly? Also make sure that your mailer configuried properly. In order to recieve confirmation emails you need to set up :confirmable model to your user model. Here is the instructions on how to set up :confirmable model in devise gem: https://github.com/heartcombo/devise/wiki/How-To%3A-Add-%3Aconfirmable-to-Users