Skip to content

Commit

Permalink
report a new error, thx 特特特~
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed Sep 17, 2016
1 parent 9e729ef commit 0154737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chapter5/section3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def signin():
password = request.form['password']
error = None
if len(username) < 5:
error = 'Password must be at least 5 characters'
error = 'Username must be at least 5 characters'
if len(password) < 6:
error = 'Password must be at least 8 characters'
elif not any(c.isupper() for c in password):
Expand Down
1 change: 1 addition & 0 deletions errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| --------------------- |:-------------:| --------------:|-----------:|
| 第2章 autoenv(P24) 中间 | echo "source source /home/ubuntu..."| echo "source /home/ubuntu..."| @刘一鹤 |
| 第3章 配置管理(P31) 尾部| app.config.from_envar('SETTINGS') | app.config.from_envar('YOURAPPLICATION_SETTINGS')| @凝霜 |
| 第5章 使用Ajax 尾部| error = 'Password must be at least 5 ...'| error = 'Username must be at least 5 ...'| @特特特~ |

### 代码错误

Expand Down

0 comments on commit 0154737

Please sign in to comment.