aboutsummaryrefslogtreecommitdiffstats
path: root/storage_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage_text.c')
-rw-r--r--storage_text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage_text.c b/storage_text.c
index 004e891c..f3ca8a38 100644
--- a/storage_text.c
+++ b/storage_text.c
@@ -52,7 +52,8 @@ static storage_status_t text_load ( const char *my_nick, const char* password, i
if( !fp ) return STORAGE_NO_SUCH_USER;
fscanf( fp, "%32[^\n]s", s );
- if( setpass( irc, password, s ) < 0 )
+
+ if (checkpass (password, s) != 0)
{
fclose( fp );
return STORAGE_INVALID_PASSWORD;
@@ -276,7 +277,8 @@ static storage_status_t text_check_pass( const char *nick, const char *password
fscanf( fp, "%32[^\n]s", s );
fclose( fp );
- /*FIXME: Check password */
+ if (checkpass( password, s) == -1)
+ return STORAGE_INVALID_PASSWORD;
return STORAGE_OK;
}