Changeset 11992 for trunk/install


Ignore:
Timestamp:
Aug 24, 2011, 10:03:53 PM (13 years ago)
Author:
plg
Message:

feature 2027 implemented: the "lost password" feature was rewritten.

The algorithm is highly inspired from WordPress :

1) in a single field, you give a username or an email
2) Piwigo sends an email with the activation key
3) the user clicks on the link in the email (with the activation key) and is able to set a new password

The "lost password" feature is no longer limited to "classic" users:
administrators and webmasters can use it too (no need to tell webmasters
that they can only change their password in the database)

Location:
trunk/install
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/piwigo_structure-mysql.sql

    r11893 r11992  
    418418  `enabled_high` enum('true','false') NOT NULL default 'true',
    419419  `level` tinyint unsigned NOT NULL default '0',
     420  `activation_key` char(20) default NULL,
    420421  UNIQUE KEY `user_infos_ui1` (`user_id`)
    421422) ENGINE=MyISAM;
  • trunk/install/piwigo_structure-pdo-sqlite.sql

    r11893 r11992  
    481481  "enabled_high" BOOLEAN default true,
    482482  "level" INTEGER default 0 NOT NULL,
     483  "activation_key" CHAR(20) default NULL,
    483484  PRIMARY KEY ("user_id"),
    484485  CONSTRAINT "user_infos_ui1" UNIQUE ("user_id")
  • trunk/install/piwigo_structure-pgsql.sql

    r11893 r11992  
    582582  "enabled_high" BOOLEAN default true,
    583583  "level" INTEGER default 0 NOT NULL,
     584  "activation_key" CHAR(20) default NULL,
    584585  PRIMARY KEY ("user_id"),
    585586  CONSTRAINT "user_infos_ui1" UNIQUE ("user_id")
  • trunk/install/piwigo_structure-sqlite.sql

    r11893 r11992  
    481481  "enabled_high" BOOLEAN default true,
    482482  "level" INTEGER default 0 NOT NULL,
     483  "activation_key" CHAR(20) default NULL,
    483484  PRIMARY KEY ("user_id"),
    484485  CONSTRAINT "user_infos_ui1" UNIQUE ("user_id")
Note: See TracChangeset for help on using the changeset viewer.