Giter VIP home page Giter VIP logo

capg_login_console_app's Introduction

capg_login_console_app :octocat:

In order to use login, firstly extends AuthenticationDaoImpl to UiMainClass UiMainClass extends AuthenticationDaoImpl to use login, validation, logout service, encrytion service.

Add User To Store

  • add user by creating object as admin type
User u1 = new User("user", "password", "type");
service.addUser(store, u1); // retrun type string
  • add user by creating object as normal user type
User u1 = new User(user, password);
service.addUser(store, u1); // retrun type string
  • add user with username and password
service.addUser(store, username, password) // retrun type string

Validation Using Regex

_This validation password password that contain only number[0-9], alphbade[a-z], and special character , -, *. Min length is 6 and Max length is 15.

String regex = "^[a-z0-9_-[*]]{6,15}$";

Change this regex accordingly to do validation

Password encrytion

User Password is encryped by using md5 hasing.

Methods

  • Login Method
loginCheck(username, password);  //return type String
  • Forget Password Method
forgetPassword(username, newpassword); // retrun type string
  • Get current login
this.getLoginUser(); // return type string (Id)
  • Logout
this.logout(username); // retrun type string

capg_login_console_app's People

Contributors

shubham-9798 avatar

Watchers

Vineet Semwal avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.