繁体   English   中英

laravel 5.7进行电子邮件验证

[英]email verification with laravel 5.7

因此,当新的测试求职者将验证电子邮件发送到mailtrap时,laravel 5.7出现了这个问题,试图建立验证电子邮件脚本。 通常,验证脚本应从数据库中选择测试求职者ID,但问题是inmail陷阱,链接未正确显示(错误的ID)

http://127.0.0.1:8000/job_seeker.verification/ 1566934249 ?signature = a70c7846941347109945c2e9d07ccbcd285082e3b1f561d15e4b86d3afceb467

粗体字区域是正确ID所在的区域

https://github.com/moussa03/job_board

这是整个项目的链接,以防万一有人想看看它的任何帮助将不胜感激

我已经尝试过以下解决方案链接波纹管在多个身份验证系统上应用Laravel 5.7 MustVerifyEmail

整个项目存在于github中

没有弹出错误消息,只有havin issu通过验证链接选择新用户ID

$company = new Company;
    if($request->input('website') != ""){
        $company->website = $request->input('website');
    }
    $company->name = $request->input('name');
    $company->type = $request->input('type');
    $company->city = $request->input('city');
    $company->phone = $request->input('phone');
    $company->varificationcode = sha1(time());
    $company->profile_description = "No description";
    $company->user_id = $user->id;
    $company->save();

    Mail::to($request->input('email'))->send(new VarifyMail($company));

在电子邮件模板中,我已经访问了公司数据,如下所示:

  <h2 id="greet">Welcome {{$user->name}} to MyCompany</h2>
  <br/>
  <p class="lead">Thank you for registering to our website. It's an honor to have you in our community.</p>
  <br/>
  <p class="lead">Your account has been successfully created. in order to be able to login for the first time, click the link below to activate your account.</p>
  <br/>
  <a class="btn btn-sucess pl-5 pr-5" href="{{url('company/verify',[$user->id ,$user->varificationcode])}}">Verify Email</a>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM