#why i have to be logged in to get that the verification link is expired and is that normal

27 messages · Page 1 of 1 (latest)

lethal yacht
#
    public function store(LoginForm $login)
    {
        $login->authenticate();



        if(!request()->user()->hasVerifiedEmail())
        {
            return redirect()->intended('verification.verify');
        }

        session()->regenerate();


        return redirect()->route('posts.index')->with('success','Welcome Back!');

    }
<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\EmailVerificationRequest;
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Exceptions\InvalidSignatureException;


class EmailVerificationController extends Controller
{
    public function create()
    {
        if(\request()->user()->hasVerifiedEmail())
        {
            return redirect()->route('posts.index');
        }
        return view('email_varification_notice.create',['title'=> 'Email Verification']);
    }

    public function store(EmailVerificationRequest $request) :RedirectResponse
    {

        if($request->user()->hasVerifiedEmail())
        {
            return redirect()->intended('/posts')->with('success','Email Already Verified');
        }
        elseif(!$request->user()->hasVerifiedEmail() && $request->hasValidSignature()){
            $request->user()->markEmailAsVerified();
            return redirect()->intended('/posts')->with('success','Thank You Email Verified');
        }

        return redirect()->intended('/posts')->with('success','Email Already Verified');
    }
}
gleaming vigil
#

Yes, Laravel's default verification requires you to be signed in. Apart from that, no clue what you're asking

lethal yacht
#

@gleaming vigil the question is clear

#

@gleaming vigil why i have to be logged in to get a notification that the verfication link that i am using to verfay the email is expired

#

what happens here is that when click the link for verification i got redricted to the login page then i login and i verified the email OK but the link has an expiration time so when i click on the same link again i got redricted again to the login page and then i log in but the message that appears is welcome back not link expired what i want is that i get the message link expired when i redricted to the login page

#

@gleaming vigil you got my point or still have no clue of what i am asking

#

@gleaming vigil and please read the code above

gleaming vigil
lethal yacht
# gleaming vigil Honestly have no clue what you're trying to do here Verification is built into L...

i understand your point that laravel has a built in vefication and security system but if you read the code that i am witting above you will see that i am using breeze instead i changed the redirection part of the code and you can compare my code to a new breeze project i changed some parts in the code to meet the customer needs and think as a developer as the word mean developing is changing things to meet customer requirements this is normal in conclusion i dont like prototyping in devveloping things i like custimization and i dont think this is a bad thing

lethal yacht
lethal yacht
gleaming vigil
#

Dude, why do you always keep pinging someone repeatedly..?! One reply is enough, no need to ping someone 3 times within like 2 minutes
Also, you could explain what you really want, we don't need whole stories about your customers or even other frameworks. Your initial question was if email validation requires login; yes you do. Then you went on about all kinds of things, I have no clue what you're aiming at here.

#

Are you for real..?

#

Seriously, if you're just going to be annoying a timeout would be applicable

lethal yacht
#

i dont think logical answer is annoying unless you have nothng to say

#

i answered you logically but your answer is outside of the scope of my question
Dude, why do you always keep pinging someone repeatedly..?! One reply is enough, no need to ping someone 3 times within like 2 minutes Also, you could explain what you really want, we don't need whole stories about your customers or even other frameworks. Your initial question was if email validation requires login; yes you do. Then you went on about all kinds of things, I have no clue what you're aiming at her

gleaming vigil
#

I mentioned you pinging me 3 times, then you replied with just a mention, and you deleted that

lethal yacht
#

i did not delete any thing from what i am typing

gleaming vigil
#

You did.

lethal yacht
#

aha the last mention i did it wrong and i deleted it

#

sorry for that

lethal yacht
#

good bye ! and thank you

gleaming vigil
# lethal yacht and by the way i dont care about timeout its ok i have other places that i can a...

You're quite good at picking out selective information. I didn't say you can't ask questions here, I mentioned you kept pinging me for no reason, after which you just did that again for no reason. So, if you just want to be annoying there's no reason to be here.

Right after I tried to help you, again. As I said, your stories contained a whole load of other things that are irrelevant to what you're asking. You were talking about customers, prototyping, other frameworks etc. That's why I asked you to state what you need help with, what you're trying to do, be specific. We don't care about all kinds of random facts, we want to help you, but you'll have to work with us otherwise it's impossible to help

lethal yacht
gleaming vigil
#

To which I replied it contains so many other random details it's impossible to follow, just state what the issue is and what you need help with. I don't need to know about your customers, random frameworks, prototypes. Help us help you.

lethal yacht