Store the account type ("hydra" or "persona") explicitly in the database
[?]
Nov 5, 2013, 10:46 AM
D44B24QC6NCED6DVUYP2IJJEVBG2JNBKPBRRSLI5UXQTKA23DJQQCDependencies
- [2]
VVRM3EGCLink to both the Persona and legacy sign in - [3]
SYLVCTT6Start api cleanup with the User model - [4]
LCLCU6FNDon't show a password reset button for Persona accounts - [5]
PFB5ZUQWFix legacy login - [6]
OEPUOUNBUsing twitter bootstrap for more consistent looks for Hydra - [7]
DV43UILUDon't float the search bar to the right in collapsed mode - [8]
36ZTCZ4FAdd basic Persona support - [9]
2G63HKCHFix some wellformedness issues - [10]
JARRBLZDBootstrapify the Hydra forms (except the project and jobset edit pages) - [11]
ZDENAYQI* email notification of evaluation errors to project owner (if desired) - [12]
SB2V735VKeep track of the database schema version - [13]
XMB4MTRLShow sign in as success - [14]
LZVO64YGMerge in the first bits of the API work - [15]
ZWCTAZGLadded newsitems, added some admin options to clear various caches. - [16]
Y6AHH4THRemove the logfile and logSize columns from the database - [17]
XUKHBDR5Prevent Persona users from setting a password - [18]
XJRJ4J7MAdd user registration - [19]
LSZLZHJYAllow users to edit their own settings - [20]
J5UVLXOK* Start of a basic Catalyst web interface. - [21]
KSBB33REAdd a dashboard - [22]
KN3VYE5P* Cleaned up the foreign key constraints. - [*]
S66BOMVU* Added authentication. - [*]
QL55ECJ6- adapted ui for hydra, more in line with nixos.org website - [*]
SZYDW2DGhydra: added some user admin - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/lib/Hydra/Controller/User.pm at line 94
, type => "persona" - edit in src/lib/Hydra/Controller/User.pm at line 167
, type => "hydra" - replacement in src/lib/Hydra/Controller/User.pm at line 250
error($c, "This user's password cannot be reset.") if $user->password eq "!";error($c, "This user's password cannot be reset.") if $user->type ne "hydra"; - replacement in src/lib/Hydra/Controller/User.pm at line 279
if ($user->password ne "!" && $password ne "") {if ($user->type eq "hydra" && $password ne "") { - edit in src/lib/Hydra/Schema/Users.pm at line 62
is_nullable: 0=head2 typedata_type: 'text'default_value: 'hydra' - edit in src/lib/Hydra/Schema/Users.pm at line 83
"type",{ data_type => "text", default_value => "hydra", is_nullable => 0 }, - replacement in src/lib/Hydra/Schema/Users.pm at line 187
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-14 15:46:29# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hv9Ukqud0d3uIUot0ErKeg# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-11-05 10:22:03# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Gd8KwFcnVShZ/WihvwfgQw - replacement in src/root/layout.tt at line 99
You are signed in as <tt>[% HTML.escape(c.user.username) %]</tt>.You are signed in as <tt>[% HTML.escape(c.user.username) %]</tt>[% IF c.user.type == 'persona' %] via Persona[% END %]. - replacement in src/root/layout.tt at line 116
[% IF c.user_exists && c.user.password != '!' %][% IF c.user_exists && c.user.type == 'hydra' %] - replacement in src/root/topbar.tt at line 131
<a href="[% c.uri_for('/login') %]">Sign in with a Hydra user name</a><a href="[% c.uri_for('/login') %]">Sign in with a Hydra account</a> - replacement in src/root/user.tt at line 37
[% IF !create && user.password != '!' %][% IF !create && user.type == 'hydra' %] - replacement in src/root/user.tt at line 104
[% IF !create && c.check_user_roles('admin') && user.password != '!' %][% IF !create && c.check_user_roles('admin') && user.type == 'hydra' %] - replacement in src/sql/hydra.sql at line 12
emailOnError integer not null default 0emailOnError integer not null default 0,type text not null default 'hydra' -- either "hydra" or "persona" - file addition: upgrade-25.sql[28.3004]
alter table Users add column type text not null default 'hydra';