Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in typing Twitter PIN causes new PIN to be generated #92

Open
dcousineau opened this issue May 31, 2011 · 11 comments
Open

Failure in typing Twitter PIN causes new PIN to be generated #92

dcousineau opened this issue May 31, 2011 · 11 comments
Assignees
Labels

Comments

@dcousineau
Copy link
Contributor

If you fail to type in the correct PIN and attempt to log in (and get a failure), the previously correct PIN will no longer work (as I assume internally Twitter generates a new PIN). Thusly the PIN page must be refreshed and the new pin must be typed in proper.

When we integrate we will want to refresh the pin page on failure. Thanks to twitter for this one.

@willhoney7
Copy link
Contributor

Hmmmm. To be honest, I don't think this would show up enough to warrant the amount of work needed to circumvent it. If we just display an error to the user when they enter the pin wrong saying, "Wrong pin, please refresh the page and get a new one", we'd be fine.

If we do the pin page as a separate browser webpage, I don't think we have control over it to refresh or even close it.

A webview is a possibility but would fit poorly with our popup I think.

A third option is to roll our own webpage card. We just pop open a new card that has our webview widget and that will allow us to refresh it and so forth. However, I don't think this will work in a browser environment.

@funkatron
Copy link
Member

I might be able to sort this out in code; lemme look into it. It may be that I just am assuming the code is correct and never try to reset. maybe?

@dcousineau
Copy link
Contributor Author

I personally would put in a vote to eventually move to using a webview in the workflow.

My main feature as per Tibfib is that I'm an advanced user and I spent 20 minutes wondering why I couldn't authenticate. If that happened to me, what happens to an average user who keeps typing in the same pin even though the pin changes every attempt? They'll get frustrated and move to another app. As well, what about the users with Dyslexia? They're probably going to have several attempts.

For the immediate term we could probably get away with a big warning message and a "Start Over" workflow.

@funkatron
Copy link
Member

In 6787845 I had it handle it more intelligently. The failure is detected and the user is encouraged to "Try Again." Only issue, really, is that I can't reach out and tell the browser to close it's window from before. I think this works decently enough for now, but I suspect a webview implementation in-app is going to be something we want to do post initial release. For now we have higher priorities, I think.

@ghost ghost assigned dcousineau Jun 1, 2011
@willhoney7
Copy link
Contributor

How would a webview work with our popup workflow?

Why not just have the banner error for the few power users say, "Wrong pin, refresh Twitter and get a new one."

@funkatron
Copy link
Member

It would open the webview within the popup, probably.

Power users aren't our worry here. Trust me, as the guy who has to answer questions from users.

Ed Finkler
http://funkatron.com
@funkatron
AIM: funka7ron / ICQ: 3922133 / XMPP:funkatron@gmail.com

On Wednesday, June 1, 2011 at 3:53 PM, Tibfib wrote:

How would a webview work with our popup workflow?

Why not just have the banner error for the few power users say, "Wrong pin, refresh Twitter and get a new one."

Reply to this email directly or view it on GitHub:
https://github.com/funkatron/Spaz-Enyo/issues/92#comment_1276738

@dcousineau
Copy link
Contributor Author

That was exactly my point: Power users aren't going to have this issue (though they may, like I did).

We could probably send a flag / alter the URL and force the mobile interface of the Twitter PIN auth so it'll fit in the dialog.

@funkatron
Copy link
Member

Yep, forcing mobile would be a really good idea.Unrelated, from a friend today:"Yo -- finally giving the "chrome" version of spaz a try. Best. Linux. Client. Ever. :)"Ed Finkler@funkatronFunkatron.comSent from my Palm PreOn Jun 1, 2011 5:17 PM, dcousineau reply@reply.github.com wrote: That was exactly my point: Power users aren't going to have this issue (though they may, like I did).

We could probably send a flag / alter the URL and force the mobile interface of the Twitter PIN auth so it'll fit in the dialog.

Reply to this email directly or view it on GitHub:
https://github.com/funkatron/Spaz-Enyo/issues/92#comment_1277223

@willhoney7
Copy link
Contributor

Oh, looks my email reply didn't get added. Here it was:

Oh. I thought your point was that power users would have issues since you did.

If we do a webview, then why not go the whole way and do the redirect stuff?

@funkatron
Copy link
Member

Yeah, that won't work because we can't redirect to anything, basically. Capturing the redirect event seems flakey. Rather go with known entity for now so it works.

@willhoney7
Copy link
Contributor

Gotcha, sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants