changeset 22:8803e5d52611 draft

Show guidance when wrong password entered.
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 01 Apr 2012 20:49:16 +0900
parents 163e3e2cf5d5
children 069f9183361e
files after5.rb
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Sun Apr 01 17:17:10 2012 +0900
+++ b/after5.rb	Sun Apr 01 20:49:16 2012 +0900
@@ -2,10 +2,10 @@
 # -*- coding: euc-jp -*-
 #
 # Associative Scheduling Table - after5
-# (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji@gentei.org]
+# (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.18 2012/04/01 05:18:57 yuuji Exp yuuji $
 # $HGid$
-# Last modified Sun Apr  1 16:41:56 2012 on firestorm
+# Last modified Sun Apr  1 20:47:49 2012 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 
@@ -1121,6 +1121,8 @@
 	'error'		=> ['エラー:', 'Error: '],
 	'mailerror'	=> ['メイルアドレスが違います', 'Invalid email address'],
 	'pswderror'	=> ['パスワードが違います', 'Password incorrect'],
+	'forgotguide'	=> ['忘れた場合は %s と入力するよろし',
+ "Put \`%s' when you forgot password."],
 	'fmtdaysschedule'=> ['%s〜の予定', 'Schedule from %s'],
         'schedtable'	=> ['予定表', 'Schedule Table'],
 	'noplan'	=> ['登録されている予定はありません', 'No plans'],
@@ -1406,6 +1408,7 @@
 	  throw :auth, nil
 	else
 	  outputError(msg('pswderror'))
+	  @O.print @H.p(sprintf(msg('forgotguide'), @opt['forgot']))
 	  throw :auth, nil
 	end
       elsif passwd == ''

yatex.org