Lesson 36 of 50

Authentication Basics

Authentication allows users to log in securely. In this lesson, we cover simple login form validation and security practices.

function login(user, pass){
  if(user==='admin' && pass==='1234'){
    alert('Welcome Admin');
  } else { alert('Invalid'); }
}
← Previous Next →