Wiki articles in category How-tos tagged with "login"

Showing 1-12 of 12 items.

How to login from different tables in Yii2

Created 8 years ago by AndroideLP AndroideLP, updated 6 years ago by lenovo lenovo.

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object apply one table to authentication ('identityClass' => 'app\panel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

5 0
6 followers
Viewed: 86 921 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 11 years ago by Wade Shuler Wade Shuler, updated 11 years ago by samdark samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

9 1
18 followers
Viewed: 135 291 times
Version: 2.0
Category: How-tos

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created 11 years ago by hrnair hrnair, updated 11 years ago by hrnair hrnair.

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 48 905 times
Version: 2.0
Category: How-tos

Google style sign out of all other sessions

Created 11 years ago by Rohit Suthar Rohit Suthar, updated 11 years ago by Rohit Suthar Rohit Suthar.

In this wiki I will show how could logout from all other sessions or all other places.

0 0
5 followers
Viewed: 29 260 times
Version: 1.1
Category: How-tos

How to get & store Last Login DateTime in database?

Created 11 years ago by Rohit Suthar Rohit Suthar, updated 11 years ago by Rohit Suthar Rohit Suthar.

In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

2 0
4 followers
Viewed: 28 146 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 11 years ago by darkheir darkheir, updated 11 years ago by darkheir darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 20 507 times
Version: 1.1
Category: How-tos

Configuring different sessions for backend and frontend in Yii advanced app

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V Kartik V.

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

4 0
46 followers
Viewed: 54 135 times
Version: 2.0
Category: How-tos

How to create Module based Login

Created 12 years ago by Ibrar Turi Ibrar Turi, updated 12 years ago by CeBe CeBe.

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 24 652 times
Version: 1.1
Category: How-tos

Activate captcha after unsuccessful login attempts

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Rohit Suthar Rohit Suthar.

Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

4 1
15 followers
Viewed: 43 375 times
Version: 1.1
Category: How-tos

Checking for "expired" sessions/logins on the client side

Created 12 years ago by le_top le_top, updated 11 years ago by le_top le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 43 991 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 14 years ago by Rutger Rutger, updated 9 years ago by Rutger Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 43 433 times
Version: 1.1
Category: How-tos

Secure password hashing with bCrypt

Created 14 years ago by waitforit waitforit, updated 13 years ago by Ivo Pereira Ivo Pereira.

In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

5 0
9 followers
Viewed: 41 948 times
Version: 1.1
Category: How-tos