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

Showing 1-12 of 12 items.

How to login from different tables in Yii2

Created 7 years ago by AndroideLP, updated 5 years ago by 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: 69 996 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Wade Shuler, updated 10 years ago by 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: 127 844 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by hrnair, updated 10 years ago by 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: 46 044 times
Version: 2.0
Category: How-tos

Google style sign out of all other sessions

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

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

0 0
5 followers
Viewed: 27 249 times
Version: 1.1
Category: How-tos

How to get & store Last Login DateTime in database?

Created 10 years ago by Rohit Suthar, updated 10 years ago by 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: 26 395 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

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

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

2 0
2 followers
Viewed: 18 741 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, updated 9 years ago by 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: 50 731 times
Version: 2.0
Category: How-tos

How to create Module based Login

Created 11 years ago by Ibrar Turi, updated 11 years ago by 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: 22 958 times
Version: 1.1
Category: How-tos

Activate captcha after unsuccessful login attempts

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

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

4 1
15 followers
Viewed: 39 959 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by le_top, updated 10 years ago by 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: 39 594 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 13 years ago by Rutger, updated 8 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 40 289 times
Version: 1.1
Category: How-tos

Secure password hashing with bCrypt

Created 13 years ago by waitforit, updated 12 years ago by 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: 39 005 times
Version: 1.1
Category: How-tos