diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-12-15 10:57:11 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-01-20 16:41:33 +0100 |
commit | 848939b7ba6e34789baa32e467042f481754e2e5 (patch) | |
tree | 6bf0c7625bb16096e0709d866229a8f8f1742f2d | |
parent | 1022c59df8ff5c67c1c3191b035985f4037ea9cf (diff) | |
download | Shaarli-848939b7ba6e34789baa32e467042f481754e2e5.tar.gz Shaarli-848939b7ba6e34789baa32e467042f481754e2e5.tar.zst Shaarli-848939b7ba6e34789baa32e467042f481754e2e5.zip |
Fixes can login function call in loginform.html
Fixes #711
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | tpl/loginform.html | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 9ffb3d00..6ff1b20f 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -4,6 +4,7 @@ cache: | |||
4 | directories: | 4 | directories: |
5 | - $HOME/.composer/cache | 5 | - $HOME/.composer/cache |
6 | php: | 6 | php: |
7 | - 7.1 | ||
7 | - 7.0 | 8 | - 7.0 |
8 | - 5.6 | 9 | - 5.6 |
9 | - 5.5 | 10 | - 5.5 |
diff --git a/tpl/loginform.html b/tpl/loginform.html index a49b42d3..84176385 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | <head>{include="includes"}</head> | 3 | <head>{include="includes"}</head> |
4 | <body | 4 | <body |
5 | {if="ban_canLogin()"} | 5 | {if="ban_canLogin($conf)"} |
6 | {if="empty($username)"} | 6 | {if="empty($username)"} |
7 | onload="document.loginform.login.focus();" | 7 | onload="document.loginform.login.focus();" |
8 | {else} | 8 | {else} |
@@ -13,7 +13,7 @@ | |||
13 | {include="page.header"} | 13 | {include="page.header"} |
14 | 14 | ||
15 | <div id="headerform"> | 15 | <div id="headerform"> |
16 | {if="!ban_canLogin()"} | 16 | {if="!ban_canLogin($conf)"} |
17 | You have been banned from login after too many failed attempts. Try later. | 17 | You have been banned from login after too many failed attempts. Try later. |
18 | {else} | 18 | {else} |
19 | <form method="post" name="loginform"> | 19 | <form method="post" name="loginform"> |