Login
Login is the act of providing and/or validating user credentials to ascertain that a person (or system) is who they say they are. For this reason, login is one of the most commonly used techniques for authentication, although authentication may be done without an action similar to a login.
Login is typically accomplished by using one of the following technical arrangements:
▪ Username + Password ▪ Email + Password ▪ Swipe Card ▪ Contact-less Proximity Card ▪ Chip/Pin# ▪ Voice Recognition ▪ Facial Recognition ▪ Biometrics Identification (fingerprint, eye/iris-scanning, walking gait analysis, height/weight/presence, etc)
Registration
Registration is typically a pre-requisite for Login, being that a given user must have a valid account before being able to login. However, this is not always necessarily the case, when one system provides the ability to login via an account held on another trusted 3rd party platform/service (as in the case of Federated logins, OpenID/SSO, or using web services like Google OAuth, FacebookConnect, etc).
EXAMPLES
- Simple Form Login Page With Apache Sling: http://dzone.com/articles/simple-form-login-page-with-apache-sling-xico-juni-1
- Cool Login with jQuery + PHP: http://tutorialzine.com/2009/10/cool-login-system-php-jquery/
- The Anatomy of a Perfect Login Page: http://cssglobe.com/post/9688/the-anatomy-of-a-perfect-login-page
- Using JAAS with Tomcat: http://www.kopz.org/public/documents/tomcat/jaasintomcat.html
- JSP login system: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4841&lngWId=2[9][10]
Resources
- Beta Splash Page Email Signup Form: http://codecanyon.net/item/beta-splash-page-email-signup-form/55646
- PHP Login System: http://progtuts.info/92/login-system/
- roScript's PHP Login Script: http://www.roscripts.com/PHP_login_script-143.html
- Members mgmt (PHP script): http://www.1afm.net/scripts/catscript.php?catid=18
- PHP Secure Login: https://www.phpclasses.org/package/10087-PHP-Register-and-login-users-in-a-database-with-PDO.html
- PHP JSON Login System: https://www.phpclasses.org/package/10101-PHP-Login-system-that-works-with-JSON-files.html (Login system that works with JSON files)
- MyLogin - FB, Twitter, Google: https://www.phpclasses.org/package/9810-PHP-Authenticate-users-using-Facebook-Twitter-Google.html#information
Tutorials
- Making A Cool Login System With PHP, MySQL & jQuery: http://tutorialzine.com/2009/10/cool-login-system-php-jquery/
- How to Create a Secure Login Script in PHP and MySQL: https://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL
- Creating a Secure PHP Login Script tutorial: http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/
- PHP member signup script using mysql: http://www.plus2net.com/php_tutorial/php_signup.php
- Semantic horizontal Forms: http://wojciechpolak.org/stream/?class=videos
- Nice & Clean Sliding Login Panel built with jQuery: https://web.archive.org/web/20110618210705/http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery
- PHP/MySQL Display time since user's last login: https://stackoverflow.com/questions/11147746/php-mysql-display-time-since-users-last-login
- Automatic Initialization and Updating for TIMESTAMP and DATETIME: https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html
- How to create mysql table with column timestamp default current_date?: https://stackoverflow.com/questions/34418077/how-to-create-mysql-table-with-column-timestamp-default-current-date
- Password Hashing in MySQL: https://dev.mysql.com/doc/refman/5.7/en/password-hashing.html
- Storing Passwords in MySQL: http://mysqldatabaseadministration.blogspot.ca/2006/08/storing-passwords-in-mysql.html (slightly outdated advice from 2006, but can be a guide for the bare minimum level of security)
- Storing Passwords (securly) in MySQL: https://www.flamingspork.com/blog/2006/08/25/storing-passwords-securly-in-mysql/ (and update to previous post with word on Salting)
- Best way to store passwords in MYSQL database: https://stackoverflow.com/questions/14798275/best-way-to-store-passwords-in-mysql-database
- Salted Password Hashing - Doing it Right: https://www.codeproject.com/Articles/704865/Salted-Password-Hashing-Doing-it-Right
- Login Authentication in JSP: http://www.roseindia.net/mysql/loginauthentication.shtml
- Java JSP - Login System Example: http://marakana.com/blog/examples/java-jsp-login-system-example.html
- Session Management in Java using Servlet Filters and Cookies: https://medium.com/@kasunpdh/session-management-in-java-using-servlet-filters-and-cookies-7c536b40448f
- A Simple Functional Java "user validation" example: https://medium.com/@johnmcclean/a-simple-functional-java-validation-example-3d2504e97d99
- How to build (a serverless/SaaS-based) Login and Sign Up functionality for your iOS app using Firebase within 15 mins: https://medium.com/@ashikabala01/how-to-build-login-and-sign-up-functionality-for-your-ios-app-using-firebase-within-15-mins-df4731faf2f7
- Spring Security + Hibernate XML Example: https://www.mkyong.com/spring-security/spring-security-hibernate-xml-example/
- Sign-in form best practices: https://www.youtube.com/watch?v=alGcULGtiv8
External Links
- wikipedia: Login
- wikipedia: List of password managers
- ABOUT - PHP Login Scripts: http://php.about.com/od/finishedphp1/ss/php_login_code.htm
- How To Design The Perfect Form: http://webdesigntuts.com/web-design/how-to-design-the-perfect-form/
- 40 CSS Web Form Style Tutorials: http://www.sitebox.net/tutorials/40-css-web-form-style-tutorials
- Designing a perfect onboarding (Registration) flow: https://blog.sourcerer.io/designing-a-perfect-onboarding-flow-5285c4c3ca91
- Don’t Get Clever with Login Forms: http://bradfrost.com/blog/post/dont-get-clever-with-login-forms/
- Animated SVG -- Yeti Avatar v2 - Login form: https://codepen.io/dsenneff/pen/2c3e5bc86b372d5424b00edaf4990173
References
- ↑ Spring Security -- Registration – The Registration Process (Pt. I): http://www.baeldung.com/registration-with-spring-mvc-and-spring-security
- ↑ Spring Security -- Registration – Activate a New Account by Email (Pt. II): https://www.baeldung.com/registration-verify-user-by-email
- ↑ Spring Security -- Registration – Resend Verification Email (Pt. III): https://www.baeldung.com/spring-security-registration-verification-email
- ↑ Spring Security -- Registration – Reset Your Password (Pt. IV): https://www.baeldung.com/spring-security-registration-i-forgot-my-password
- ↑ Spring Security -- Registration – Password Encoding (Pt. V): https://www.baeldung.com/spring-security-registration-password-encoding-bcrypt
- ↑ Spring Security -- Registration – Password Strength and Rules (Pt. VI): https://www.baeldung.com/registration-password-strength-and-rules
- ↑ Growth Engineering at Netflix — Accelerating Innovation: https://medium.com/netflix-techblog/growth-engineering-at-netflix-accelerating-innovation-90eb8e70ce59 (how Netflix continuously improves their signup flow)
- ↑ Cool Login with jQuery + PHP (demo): http://demo.tutorialzine.com/2009/10/cool-login-system-php-jquery/demo.php
- ↑ Use of Select Box to show the data from database: http://www.roseindia.net/mysql/loginauthentication.shtml
- ↑ Login Authentication using Bean and Servlet In JSP: http://www.roseindia.net/jsp/loginbean.shtml
See Also
Security | Authentication | Authorization | OAuth | OpenID | JWT | Cookies | Form processing | Form validation | CSS | Popup