0
그냥 이메일을 보내지 않고 안드로이드에서 javamail API를 사용하는 사용자의 전자 메일 주소와 암호를 인증하는 방법이 있습니다. 지금까지는 내 코드가 아닙니다. ,안드로이드에서 javamail API를 사용하여 사용자 로그인을 인증하는 방법
btn_login.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
Authenticator authenticator = new Authenticator() {
private PasswordAuthentication authentication;
{
authentication = new PasswordAuthentication("username", "password");
if(authentication != null){
Toast.makeText(getApplicationContext(), "Successful Login", Toast.LENGTH_LONG).show();
}else{
Toast.makeText(getApplicationContext(), "incorrect Password", Toast.LENGTH_LONG).show();
}
}
protected PasswordAuthentication getPasswordAuthentication() {
return authentication;
}
};
또는 이것에 더 나은 솔루션을 가진 사람, 내가 듣고 싶어 해요 .. 감사
서버에
그냥 내가 뭘 해야하는지, 감사합니다 Logged –