0
0
No-Codeknowledge~30 mins

Sign up and login workflows in No-Code - Mini Project: Build & Apply

Choose your learning style9 modes available
Sign up and login workflows
📖 Scenario: You are creating a simple sign up and login system for a small website. This system will help users create accounts and then log in using their credentials.
🎯 Goal: Build a clear step-by-step workflow that shows how users sign up with a username and password, and then log in using those details.
📋 What You'll Learn
Create a data structure to store user accounts with usernames and passwords
Add a variable to track the current logged-in user
Write the main logic to check user credentials during login
Complete the workflow by adding a confirmation step for successful login
💡 Why This Matters
🌍 Real World
Sign up and login workflows are essential for websites and apps to manage user access securely and personalize experiences.
💼 Career
Understanding these workflows is important for roles in web development, user experience design, and security.
Progress0 / 4 steps
1
Create user accounts data structure
Create a dictionary called user_accounts with these exact entries: 'alice': 'pass123', 'bob': 'qwerty', and 'carol': 'abc123' to store usernames and passwords.
No-Code
Need a hint?

Use a dictionary with usernames as keys and passwords as values.

2
Add current user tracking variable
Create a variable called current_user and set it to None to track who is logged in.
No-Code
Need a hint?

Use None to show no user is logged in yet.

3
Check login credentials
Write an if statement that checks if the username input_username exists in user_accounts and if the password input_password matches the stored password. If both are true, set current_user to input_username.
No-Code
Need a hint?

Use if with in to check username and compare passwords.

4
Confirm successful login
Add a final if statement that checks if current_user is not None. If true, set a variable login_status to 'Login successful'.
No-Code
Need a hint?

Check if current_user is set and then assign login_status.