Mercurial > hgrepos > hgweb.cgi > imapext
comparison src/c-client/auth_log.c @ 4:d741b3ecc917 draft
imapext-2007f
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 30 Oct 2014 00:03:05 +0900 |
parents | 2366b362676d |
children |
comparison
equal
deleted
inserted
replaced
3:2366b362676d | 4:d741b3ecc917 |
---|---|
103 char *auth_login_server (authresponse_t responder,int argc,char *argv[]) | 103 char *auth_login_server (authresponse_t responder,int argc,char *argv[]) |
104 { | 104 { |
105 char *ret = NIL; | 105 char *ret = NIL; |
106 char *user,*pass,*authuser; | 106 char *user,*pass,*authuser; |
107 if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { | 107 if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { |
108 #ifdef QMAIL | |
109 extern char* conv_virtualdomain(char*); | |
110 user = conv_virtualdomain(user); | |
111 #endif | |
108 if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { | 112 if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { |
109 /* delimit user from possible admin */ | 113 /* delimit user from possible admin */ |
110 if (authuser = strchr (user,'*')) *authuser++ = '\0'; | 114 if (authuser = strchr (user,'*')) *authuser++ = '\0'; |
111 if (server_login (user,pass,authuser,argc,argv)) ret = myusername (); | 115 if (server_login (user,pass,authuser,argc,argv)) ret = myusername (); |
112 fs_give ((void **) &pass); | 116 fs_give ((void **) &pass); |