login about faq

Trying to make a "user proof" (yea right) app for android. What is the best way to verify that the server info and login info is correct?

With POP3, I see that there is a VerifyPopConnection which I believe verifys that we have a valid server name and settings... and there is a VerifyPopLogin which I believe verifies that the login username and password are valid. But then I read that Pop3BeginSession, which is optional, also checks these.

So the question is, if I want to do some error checking and passback information to the user that their server and/or login info is not correct... is it best to call both VerifyPop methods one after the other or use one OR the other OR use Pop3BeginSession? Seems calling both VerifyPop commands will just slow down the login process? I suppose I could "verify" these settings when they are entered in the setup and then just check the Pop3BeginSession for a failure at the actual login time???

The same I guess applies to IMAP accounts. The only thing I believe I can check is the actual IMAP.Connect method.

What do you recommend we do for these.

Thanks

Pete

asked Jan 28 at 21:07

pbrama's gravatar image

pbrama
9334


I will provide new methods to allow for the connect and authenticate to be in separate method calls. This would be the best solution. I'll also add a ConnectFailReason property that will be exactly the same as the Socket.ConnectFailReason.

If you need the best choice for what exists now, then I would recommend this: Don't call the Verify* methods up-front. If Pop3BeginSession fails, then follow up with a call to VerifyPopConnection. If that succeeds, then it's likely the login was invalid (and you could call VerifyPopLogin).

In any case, I realize this needs to be improved, and have the new methods likely by Monday.

link

answered Jan 29 at 09:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

We're these new methods ever implemented and made available?

(Feb 09 at 20:11) pbrama

Yes, they are implemented and will be available in v9.5.0.56

(Feb 10 at 07:06) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×175
×60
×3

Asked: Jan 28 at 21:07

Seen: 525 times

Last updated: Feb 10 at 07:06

powered by OSQA