Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo.c @ 27057:48bf7a893709
yahoo login ver 16: Add another case of error reporting. Ask user to visit yahoo website in case of locked account.
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Sat, 06 Jun 2009 08:18:02 +0000 |
parents | 3acb76e56517 |
children | 55811a205c71 42c64c41cf87 |
comparison
equal
deleted
inserted
replaced
27052:5d4e33e3938a | 27057:48bf7a893709 |
---|---|
1739 error_reason = g_strdup(_("Incorrect Password")); | 1739 error_reason = g_strdup(_("Incorrect Password")); |
1740 error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED; | 1740 error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED; |
1741 break; | 1741 break; |
1742 case 1213: | 1742 case 1213: |
1743 /* security lock from too many failed login attempts */ | 1743 /* security lock from too many failed login attempts */ |
1744 error_reason = g_strdup(_("Account locked: Too many failed login attempts")); | 1744 error_reason = g_strdup(_("Account locked: Too many failed login attempts.\nLogging into the Yahoo! website may fix this.")); |
1745 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; | 1745 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; |
1746 break; | 1746 break; |
1747 case 1235: | 1747 case 1235: |
1748 /* the username does not exist */ | 1748 /* the username does not exist */ |
1749 error_reason = g_strdup(_("Username does not exist")); | 1749 error_reason = g_strdup(_("Username does not exist")); |
1750 error = PURPLE_CONNECTION_ERROR_INVALID_USERNAME; | 1750 error = PURPLE_CONNECTION_ERROR_INVALID_USERNAME; |
1751 break; | 1751 break; |
1752 case 1214: | |
1752 case 1236: | 1753 case 1236: |
1753 /* indicates a lock of some description */ | 1754 /* indicates a lock of some description */ |
1754 error_reason = g_strdup(_("Account locked: See the debug log")); | 1755 error_reason = g_strdup(_("Account locked: Unknown reason.\nLogging into the Yahoo! website may fix this.")); |
1755 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; | 1756 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; |
1756 break; | 1757 break; |
1757 case 100: | 1758 case 100: |
1758 /* username or password missing */ | 1759 /* username or password missing */ |
1759 error_reason = g_strdup(_("Username or password missing")); | 1760 error_reason = g_strdup(_("Username or password missing")); |