Description

Professional Ext applications require users to login. This example shows how to get logged-in user data from the server before the application actually starts and how to require user to login.

Main Features

  • uses custom startup sequence
  • stores user data in private variables
  • uses View Model to two-way bind login form fields
  • protects from command line startup attempts
  • reloads the application on logout
  • uses custom Ext error handler (test by typing XLogin.startApp()) in the console

Use Cases

You can use this example as the basis of your login system when developing an application that requires login. However, you need to implement your security measures as the example does not focus on security. See the comments in the source code that explain where to implement your security implementation.

Example Files (relative to example root)

The example has been initially generated with sencha generate app so the following list contains only added or edited files:

app.js

app/Application.js
app/Setup.js
app/view/LoginView.js

Source Code

If you want to see the example code, login or sign-up. Free membership is available.
Follow me:
Latest posts by saki (see all)

Enter your username and password to log into your account. Don't have an account? Sign up.

Want to collaborate on an upcoming project?