Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.43 KB

File metadata and controls

59 lines (43 loc) · 1.43 KB

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