Wiki articles tagged with "login"

Showing 1-20 of 20 items.

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

Created 11 months ago by aayushmhu aayushmhu, updated 11 months ago by aayushmhu aayushmhu.

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

2 0
1 follower
Viewed: 26 037 times
Version: 2.0
Category: Tutorials

How to login from different tables in Yii2

Created 7 years ago by AndroideLP AndroideLP, updated 5 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: 74 865 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 Wade Shuler, updated 10 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: 129 666 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 hrnair, updated 10 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: 46 616 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 10 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: 27 500 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 10 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: 26 683 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

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

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

2 0
2 followers
Viewed: 19 026 times
Version: 1.1
Category: How-tos

Forcing login for all pages using CBehavior

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 forcing login for all pages and users must be logged in to access almost all of the site’s content.

0 3
5 followers
Viewed: 35 122 times
Version: 1.1
Category: Tutorials

Disallowing login for INACTIVE users in Yii

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 to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

1 0
3 followers
Viewed: 17 689 times
Version: 1.1
Category: Tutorials

How to prevent Login from two places?

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 to Disallowing login from multi places. User can login or access their account at time, only single place.

0 0
5 followers
Viewed: 21 298 times
Version: 1.1
Category: Tutorials

Configuring different sessions for backend and frontend in Yii advanced app

Created 11 years ago by Kartik V Kartik V, updated 9 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: 51 329 times
Version: 2.0
Category: How-tos

How to create Module based Login

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

Two Login in same form in Yii application , with two tables

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

login links will be

3 4
6 followers
Viewed: 32 304 times
Version: 1.1
Category: Tutorials

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: 40 419 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 10 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: 41 053 times
Version: 1.1
Category: How-tos

Custom Login Error Messages

Created 12 years ago by whoopass whoopass, updated 12 years ago by whoopass whoopass.

The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the [Yii Blog Tutorial](http://www.yiiframework.com/doc/blog/1.1/en/prototype...

6 0
8 followers
Viewed: 53 899 times
Version: 1.1
Category: Tutorials

Using loginRequiredAjaxResponse to solve ajax session timeout

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

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 41 552 times
Version: 1.1
Category: How-tos

Secure password hashing with bCrypt

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

Impersonate Users within Yii Framework

Created 14 years ago by Woil Woil, updated 14 years ago by Woil Woil.

For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

20 0
21 followers
Viewed: 28 334 times
Version: 1.1
Category: Tutorials

How to create nice modal login widget with a CJuiDialog

Created 14 years ago by Igor Ivanovic Igor Ivanovic, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

You have to extend the widget class and configure it for user login widget

6 0
30 followers
Viewed: 78 190 times
Version: 1.1
Category: Tutorials