Skip to content

Commit 7ad78bc

Browse files
committed
Merge pull request SGCSRelease#95 from minhoryang/issue_71_zeroNickFix
issue SGCSRelease#71 기능구현!
2 parents 1cb9a21 + be04187 commit 7ad78bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nickname.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def RecommendNickname():
3232
if request.method == "POST":
3333
target = request.form['target']
3434
nick = request.form['nick']
35+
"""Issue #71, 별명의 길이가 0일 경우 에러페이지로 이동."""
36+
if not len(nick):
37+
return render_template(
38+
"_error.html",
39+
_error__msg='별명이 없습니다.',
40+
), 400
3541
if not check_username(target, is_internal=True):
3642
return render_template(
3743
"_error.html",

0 commit comments

Comments
 (0)