DedrisFrameworkDedrisFramework

← Templates  /  Login & Auth Starter

🔐

Login & Auth Starter

FormsAuthValidation

Three polished authentication screens — sign in, sign up and reset password — with form validation hooks ready to wire to your own backend. Drop in your API calls and you have a complete auth flow.

What's included

Sign-in screen with email/password fields and a submit button.

Sign-up screen with confirm-password and terms checkbox.

Reset-password screen for the forgotten-password flow.

Validation stubs you connect to your authentication service.

Use this template

terminal
cordova create myApp com.dedris.myapp MyApp --template cordova-template-dedris-login
cd myApp
cordova run android

Project structure

www/ ├── index.html # routes to the auth screens ├── css/dedris.css # DedrisFramework styles ├── js/auth.js # validation + submit hooks └── pages/ ├── sign-in.html ├── sign-up.html └── reset.html

Hooking up sign-in

www/js/auth.js
function onSignIn(email, password) {
  // TODO: call your authentication API here
  return fetch("/api/login", {
    method: "POST",
    body: JSON.stringify({ email, password })
  });
}
← All templates Start building
Sign in

Sign-in screen preview