freeCodeCamp/curriculum/challenges/russian/06-information-security-and.../advanced-node-and-express/logging-a-user-out.russian.md

1.0 KiB

id title challengeType videoUrl localeTitle
58965611f9fc0f352b528e6c Logging a User Out 2 Регистрация пользователя

Description

undefined

Instructions

undefined

Tests

tests:
  - text: Маршрут выхода
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /req.logout/gi, "You should be call req.logout() in youre /logout route"); }, xhr => { throw new Error(xhr.statusText); })'
  - text: Выход из системы должен быть перенаправлен на главную страницу /
    testString: 'getUserInput => $.get(getUserInput("url")+ "/logout") .then(data => { assert.match(data, /Home page/gi, "When a user logs out they should be redirected to the homepage"); }, xhr => { throw new Error(xhr.statusText); })'

Challenge Seed

Solution

// solution required