Prevent Persona users from setting a password

[?]
Jul 9, 2013, 10:57 AM
XUKHBDR5HJKYJ7GEWTL4YLQEW2S4ERU2WVQZU3INIJB34B4CTUKAC

Dependencies

  • [2] XMB4MTRL Show sign in as success
  • [3] LZVO64YG Merge in the first bits of the API work
  • [4] 2CZSW5S5 Don't redirect to /login if authentication is required
  • [5] LSZLZHJY Allow users to edit their own settings
  • [6] 36ZTCZ4F Add basic Persona support
  • [*] XJRJ4J7M Add user registration
  • [*] SZYDW2DG hydra: added some user admin
  • [*] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)

Change contents

  • edit in src/lib/Hydra/Controller/User.pm at line 13
    [3.32]
    [8.435]
    use HTML::Entities;
  • replacement in src/lib/Hydra/Controller/User.pm at line 110
    [3.1113][2.0:82]()
    $c->flash->{successMsg} = "You are now signed in as <tt>" . $email . "</tt>";
    [3.1113]
    [3.259]
    $c->flash->{successMsg} = "You are now signed in as <tt>" . encode_entities($email) . "</tt>";
  • edit in src/lib/Hydra/Controller/User.pm at line 270
    [3.25913]
    [3.2427]
    error($c, "This user's password cannot be reset.") if $user->password eq "!";
  • replacement in src/lib/Hydra/Controller/User.pm at line 299
    [3.26111][3.3424:3455](),[3.3424][3.3424:3455]()
    if ($password ne "") {
    [3.26111]
    [3.3455]
    if ($user->password ne "!" && $password ne "") {
  • edit in src/lib/Hydra/Controller/User.pm at line 316
    [3.26227]
    [3.26227]
    $c->flash->{successMsg} = "Your preferences have been updated.";
  • edit in src/root/user.tt at line 37
    [8.5437]
    [8.5437]
    [% IF !create && user.password != '!' %]
  • edit in src/root/user.tt at line 51
    [10.18199]
    [8.5859]
    [% END %]