Skip to content

A quick way to add rudimentary Auth/User code (registration, email, password updating, etc)

Notifications You must be signed in to change notification settings

ProLoser/CakePHP-Welcome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome Plugin For CakePHP

THIS PLUGIN IS COMPLETELY BROKEN, DONT BOTHER USING IT

Common user functionality to be used with core Auth component for CakePHP

Features

Membership Behavior

  • Validation
    • Confirm password field validation
    • Old password field validation
    • Unique [username] field validation

Membership Component

  • Email confirmation for registration (in progress)

  • Remember Me checkbox (in progress)

  • Scaffolded views (for copying)

    • Login
    • Register
    • Forgotton Password (reset account)
    • Update Password

Installation

  1. Download or clone plugin to plugins/welcome (git://github.com/ProLoser/CakePHP-Welcome.git)
  2. Install 'Membership' behavior:

class User extends AppModel {
	var $name = 'User';
	var $actsAs = array(
		'Welcome.Membership' => array(
			// Optional configuration options
			'fields' => array(
				// fieldnames to be used
				'username' => 'username',
				'password' => 'password',
				'old_password' => 'old_password',
				'confirm_password' => 'confirm_password',
			),
		),
	);

}
  1. Just visit /welcome/users/register and the other controller actions in your browser

Custom Views / Emails

If you would like to override the default views, you can use the CakePHP standard by placing your views in: app/views/plugins/welcome/users/[here] And your email templates in: app/views/plugins/welcome/elements/email/[html|text]/register.ctp

About

A quick way to add rudimentary Auth/User code (registration, email, password updating, etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages