Skip to content

Commit

Permalink
Respect captcha_enabled setting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalker committed Jan 3, 2019
1 parent acfd25b commit f551f81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cpanfile
Expand Up @@ -11,8 +11,6 @@ requires 'RBAC::Tiny' => 0.003;
requires 'DBIx::Class';
requires 'DBIx::Class::Schema::Config';
requires 'DBD::Pg';
requires 'HTML::Strip';
requires 'Template::Plugin::HTML::Strip';
requires 'Module::Runtime';

requires 'DateTime';
Expand Down
2 changes: 2 additions & 0 deletions views/forgot_password.hbs
Expand Up @@ -59,10 +59,12 @@
<input type="text" class="form-control" name="username" placeholder="Username or email" value="{{ username }}" required>
</div>

{{#if settings.captcha_enabled}}
<div class="form-group">
<label class="control-label"> <img src="/captcha/image/{{ session.secret }}.png" /> </label>
<input type="text" name="secret" class="form-control small" placeholder="CODE" required maxlength="5 "/>
</div>
{{/if}}

<div class="form-group">
<button type="submit" class="btn btn-default">Submit</button>
Expand Down
2 changes: 2 additions & 0 deletions views/signup.hbs
Expand Up @@ -22,10 +22,12 @@
<input type="password" class="form-control" name="confirm_password" placeholder="Confirm password">
</div>

{{#if settings.captcha_enabled}}
<div class="form-group">
<label><img src="/captcha/image/{{ session.secret }}.png" /></label>
<input type="text" name="secret" class="form-control small" placeholder="CODE" required maxlength="5 "/>
</div>
{{/if}}

<hr />
<div class="form-group">
Expand Down

0 comments on commit f551f81

Please sign in to comment.