Skip to content

Commit

Permalink
Fix signup from with registration application
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Apr 24, 2023
1 parent 454737a commit 7918ed7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
/docker/volumes

# lemmybb
/lemmybb_categories.hjson
/lemmybb_categories.hjson
http-cacache/
4 changes: 2 additions & 2 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pipeline:
- cargo test --workspace --no-fail-fast

nightly_build:
image: plugins/docker
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: docker/Dockerfile
username:
Expand All @@ -56,7 +56,7 @@ pipeline:
- cron

publish_release_docker_image:
image: plugins/docker
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: docker/Dockerfile
username:
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use rocket_dyn_templates::Template;
#[main]
async fn main() -> Result<(), Error> {
env_logger::Builder::from_env(
Env::default().default_filter_or("warn,lemmy_bb=debug,handlebars=info"),
Env::default().default_filter_or("warn,lemmy_bb=info,handlebars=info"),
)
.init();
let rocket = init_rocket()?.launch();
Expand Down
2 changes: 1 addition & 1 deletion templates/components/header.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<li class="rightside" data-skip-responsive="true">
<a href="./login" accesskey="x" role="menuitem"> <i class="icon fa-power-off fa-fw" aria-hidden="true"></i><span>{{{i18n site_data "login"}}}</span> </a>
</li>
{{#if site_data.site.site_view.site.open_registration}}
{{#if (ne site_data.site.site_view.local_site.registration_mode "closed")}}
<li class="rightside" data-skip-responsive="true">
<a href="./register" role="menuitem"> <i class="icon fa-pencil-square-o fa-fw" aria-hidden="true"></i><span>{{{i18n site_data "register"}}}</span> </a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions templates/user/register.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@

<h3 class="captcha-title">{{{i18n site_data "confirmation_of_registration_title"}}}</h3>

{{#if site_data.site.site_view.site.require_application}}
<p>{{site_data.site.site_view.site.application_question}}</p>
{{#if (eq site_data.site.site_view.local_site.registration_mode "requireapplication")}}
<p>{{site_data.site.site_view.local_site.application_question}}</p>

<fieldset class="fields2">
<dl>
Expand All @@ -62,7 +62,7 @@
</fieldset>

{{/if}}
{{#if site_data.site.site_view.site.require_application and captcha.ok}}
{{#if (eq site_data.site.site_view.local_site.registration_mode "requireapplication") and captcha.ok}}
<hr/>
{{/if}}
{{#if captcha.ok}}
Expand Down

0 comments on commit 7918ed7

Please sign in to comment.