* instdbws.sql: Creates a new table to store
one time usage passwords * NpgsqlMembershipProvider.cs: should fix a bug at resetting the password * AccountController.cs: Allows the questions and answer to be specified for password recovery, at registration time * RegisterClientModel.cs: Implements the Question and answer in the registration model
This commit is contained in:
parent
53930befd3
commit
4ba20187e8
7 changed files with 49 additions and 8 deletions
|
|
@ -54,8 +54,8 @@ namespace Yavsc.ApiControllers
|
|||
model.UserName,
|
||||
model.Password,
|
||||
model.Email,
|
||||
null,
|
||||
null,
|
||||
model.Question,
|
||||
model.Answer,
|
||||
model.IsApprouved,
|
||||
out mcs);
|
||||
switch (mcs) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
2015-06-18 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* instdbws.sql: Creates a new table to store one time usage
|
||||
passwords
|
||||
|
||||
* AccountController.cs: Allows the questions and answer to be
|
||||
specified for passw recovery
|
||||
|
||||
2015-06-18 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* AccountController.cs: Register and reset passord from Web
|
||||
|
|
|
|||
|
|
@ -690,3 +690,24 @@ WITH (
|
|||
);
|
||||
|
||||
|
||||
-- Table: passwrecovery
|
||||
|
||||
-- DROP TABLE passwrecovery;
|
||||
|
||||
CREATE TABLE passwrecovery
|
||||
(
|
||||
pkid character varying NOT NULL,
|
||||
one_time_pass character varying(512) NOT NULL,
|
||||
creation timestamp with time zone NOT NULL,
|
||||
CONSTRAINT passwrecovery_pkey PRIMARY KEY (pkid),
|
||||
CONSTRAINT passwrecovery_pkid_fkey FOREIGN KEY (pkid)
|
||||
REFERENCES users (pkid) MATCH SIMPLE
|
||||
ON UPDATE CASCADE ON DELETE CASCADE
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue