* 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:
Paul Schneider 2015-06-18 12:03:58 +02:00
commit 4ba20187e8
7 changed files with 49 additions and 8 deletions

View file

@ -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
);