1.7 KiB
1.7 KiB
id | title | challengeType |
---|---|---|
5895f70ef9fc0f352b528e6b | How to Put a Profile Together | 2 |
Description
h2.center#welcome Welcome, #{username}!
creating the h2 element with the class 'center' and id 'welcome' containing the text 'Welcome, ' and the username!
Also in the profile, add a link to /logout. That route will host the logic to unauthenticate a user. a(href='/logout') Logout
Submit your page when you think you've got it right.
Instructions
Tests
tests:
- text: Correctly added a Pug render variable to /profile
testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js") .then(data => { assert.match(data, /\/views\/pug\/profile[^]*username:( |)req.user.username/gi, "You should be passing the variable username with req.user.username into the render function of the profile page"); }, xhr => { throw new Error(xhr.statusText); })'
Challenge Seed
Solution
// solution required