namespace BookStack\Exceptions;
-use BookStack\Auth\Access\LoginService;
-use BookStack\Auth\User;
+use BookStack\Access\LoginService;
+use BookStack\Users\Models\User;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Http\Request;
}
/**
- * @inheritdoc
+ * {@inheritdoc}
*/
public function toResponse($request)
{
], 401);
}
- if (session()->get('sent-email-confirmation') === true) {
+ if (session()->pull('sent-email-confirmation') === true) {
return redirect('/register/confirm');
}