Custom-PHP-Devise
=================
Custom-PHP-Devise is an inspiration from Rails Devise. This provides login and registration process with flexible authentication and this application is built on core PHP.
1.ABOUT THIS APPLICATION
******************************************
Custom-PHP-Devise application is a flexible authentication solution built on core PHP.
It is composed of the following features:
Database Authenticatable: validate the authenticity of a user while signing in.
Token Authenticatable: signs in a user based on an authentication token (also known as "single access token"). The token can be given both through query string or HTTP Basic Authentication.
Confirmable: sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in.
Recoverable: resets the user password and sends it to the user email address.
Registerable: handles signing up users through a registration process, also allowing them to edit and destroy their account.
Rememberable: manages generating and clearing a token for remembering the user from a saved cookie.
Trackable: tracks sign in count, timestamps and IP address and stores them in the database.
Timeoutable: expires sessions that have no activity in a specified period of time.
Validatable: provides validations of every field in the form. It's optional and can be customized, so you're able to define your own validations.
Lockable: locks an account after a specified number of failed sign-in attempts. Can unlock after a specified time period.
Configuration: There is an ON/OFF functionality for the above all features in config.php file (This is done by commenting and uncommenting the variables). You can use the features which are necessory for you.
Custom-PHP-Devise is an inspiration from Devise gem built for Rails. Hyperlink for Rails Devise https://github.com/plataformatec/devise
2.INSTALLATION
******************************************
Edit the file db_config.php in the includes folder and update the configuration information (with your host name, db username, db password )
To create 'devise_user_details' Table and Login attempts table : Uncomment the below block in the table.php file.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/*
// Table for storing the registered user details
$devise_user_details = "CREATE TABLE `devise_user_details` (
`user_id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`user_firstname` VARCHAR( 30 ) NOT NULL,
`user_lastname` VARCHAR( 30 ) NOT NULL,
`user_name` VARCHAR( 30 ) NOT NULL,
`user_email` VARCHAR( 30 ) NOT NULL,
`user_password` VARCHAR( 30 ) NOT NULL,
'user_ipaddress' varchar(20) DEFAULT NULL,
'signin_count' int(11) DEFAULT 0,
'signin_time' datetime DEFAULT NULL,
'token' varchar(50) DEFAULT NULL
)";
mysql_query($devise_user_details) or die(mysql_error());
//Table for storing the failure login attempts
$loginattempts = "CREATE TABLE `loginattempts` (
`IP` varchar(20),
`Attempts` int(11),
`LastLogin` DATETIME,
`blocked_time` DATETIME default NULL
)";
mysql_query($loginattempts) or die(mysql_error());
*/
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3.REQUIREMENTS
******************************************
You must have PHP 5.0 or greater installed.
In php.ini file , uncomment the following for mailing purpose:
; SMTP = your server name
; smtp_port = 25
4.WHAT THIS APPLICATION CONTAINS
******************************************
Below is a list of files used in this application:
index.php - This is the file for user login form
user_register.php - This is the file for Registration form with all JQuery validations.
insert_user.php - In this file, we will insert the registered users into database and also we will send the confirmation mail to the user. You can change the from address as needed.
forgot_password.php - In this file, if the user enters his email address then the user password will be sent to his email.
user_page.php - In this file, User details will be displayed . We can edit and delete the user account.
logout.php - In this file , the session will be destroyed and redirects to index.php page.
config.php - In this file, we can have on/off functionality for the Custom-PHP-Devise features.
includes/css - this file contains the StyleSheet used to beautify our application.
includes/images - this file contains all relevant images included in this application.
includes/js - this file contains all js file that is included in the application.
<img style="max-width:100%;" src="https://github.com/lavanya-nyros/Custom-PHP-Devise/raw/master/screenshots/login.JPG
" alt="login" title="login">
<img style="max-width:100%;" src="https://github.com/lavanya-nyros/Custom-PHP-Devise/raw/master/screenshots/profile.JPG
" alt="profile" title="profile">
没有合适的资源?快使用搜索试试~ 我知道了~
Custom-PHP-Devise的灵感来自RailsDevise。这为登录和注.zip
共23个文件
php:9个
js:5个
png:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 176 浏览量
2023-04-06
22:21:04
上传
评论
收藏 143KB ZIP 举报
温馨提示
Custom-PHP-Devise的灵感来自RailsDevise。这为登录和注
资源推荐
资源详情
资源评论
收起资源包目录
Custom-PHP-Devise的灵感来自RailsDevise。这为登录和注.zip (23个子文件)
Custom-PHP-Devise-master
screenshots
Thumbs.db 6KB
login.JPG 29KB
profile.JPG 26KB
custom-php-devise
user_registration.php 5KB
logout.php 145B
includes
db_config.php 384B
js
update_form_validation.js 943B
jquery.idle-timer.js 8KB
jquery.validate.js 45KB
bootstrap-alert.js 2KB
jquery.js 92KB
img
Thumbs.db 41KB
glyphicons-halflings-white.png 4KB
glyphicons-halflings.png 4KB
css
style.css 95KB
config.php 2KB
readme.rtf 6KB
table.php 1KB
index.php 12KB
user_page.php 8KB
forgot_password.php 4KB
insert_user.php 2KB
README.md 5KB
共 23 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于java+mysql的毕业设计6套.zip
- windows部署腾讯tmagic-editor03-DSL 解析渲染
- 基于yolov5、dlib和opencv的疲劳驾驶检测系统
- 基于YOLOv5的毒蘑菇检测项目,部署在云服务器上,运行在Android设备上
- 基于爬虫+neo4j+D3实现的苏州旅游知识图谱源码+数据.zip
- Oracle PLSQL 安装json库发送http请求服务
- VC++6.0 ListViewReport报表使用例子
- (python源码)基于图注意力模型(GAT)的交通网络流量预测算法实现
- 登记管理系统安装程序 纯java实现界面交互 v1版本
- 数据库配置面板(WPF)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功