Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть #67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax

  • Stack Developers
  • 2018-09-20
  • 2358
#67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax
  • ok logo

Скачать #67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно #67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку #67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео #67 Make E-com website in Laravel 5.6 | Update Password | Check Current Pwd with jQuery/Ajax

In Part-67, we will start working on update password form in account page. We will show fields like Current Password, New Password and Confirm Password.

First of all, we will show Current Password is correct or not whenever user fills it.

1) Update account.blade.php file :-

We will display all three fields mentioned earlier with Submit button.

2) Update main.js file :-

Now we will add jQuery function in main.js file that will check whether current password is correct or not via ajax/route/function.

3) Create Route :-

Now we will create POST route for checking current password in web.php like below :-

Route::post('/check-user-pwd','UsersController@chkUserPassword');

4) Create "chkUserPassword" function :-

Now we will create "chkUserPassword" function in UsersController file to check whether current password is correct or not. If correct then we will send true otherwise false based on which we will display message under current password field.

5) Resolve 419 Error : For resolving this error, please take below steps :-

i) Add meta statement in front_header blade file as shown in video.

ii) Update jQuery function in main.js file with below code :-
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},

6) Update Header Statements :-

Add below header statement in UsersController file :-

use Illuminate\Support\Facades\Hash;

7) Update main.js file :-

We need to update our jQuery function once again to set another id that depends upon true or false response.

If response is false then we will display Incorrect Password and if response is true then we will display Correct Password and its value we are going to display under Current Password field.

8) Update account.blade.php file :-

Now we will update account blade file with chkPwd id that we will display under current password to tell whether current password entered by user is correct or not.

So now you have seen in video, we able to display "Current Password is correct" or "Current Password is incorrect" message under Current Password field.

In next video, we will update new password as well so stay tune for next video and also don't forget to follow Laravel 5.7 series.

Thanks for watching :)

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]