-
test
tyesty
-
lovetox
ok ibr password change is a bit weird
-
lovetox
i have to set a new password, and in return i get maybe a error including a form with further questions
-
lovetox
why not just do the same as with register, request a form with all the fields..
-
Zash
Is that how it works?
-
Zash
Oh, that weird one where the XEP says to return an error along with a form?
-
Zash
That's super weird and unlike everything else in all of XMPP.
-
Zash
You have my support in just ignoring it and doing the sensible thing, like you said, request a form first.
-
lovetox
yeah except there is no way to request a form ^^
-
lovetox
the example given in the xep is also borderline stupid
-
lovetox
let the user type his new password, then send it to the server, get a error back and a form which says to type the old password and the new password again
-
Zash
The sensible thing would be an iq-get like https://xmpp.org/extensions/xep-0077.xml#example-1
-
Zash
Looks like that's what Prosody implements
-
lovetox
Zash, yes for register
-
lovetox
but not for password change
-
Zash
Fix the XEP
-
Zash
Actually, deprecate it
-
Zash
Having iq stanzas pre-auth is ugly and awkward.
-
Zash
> why not just do the same as with register, request a form with all the fields.. I was agreeing with this, in case you misunderstood everything I was writing.
-
lovetox
what makes you think i misunderstood you?
-
Zash
Maybe I'm the one misunderstanding then. It sounded like you were disagreeing with me when I said the same thing as you.
-
lovetox
what i was disagreeing with was
-
lovetox
> Zash‎: Looks like that's what Prosody implements
-
lovetox
i doubt you implement a get for password form
-
lovetox
which is not specified anywhere
-
Zash
lovetox: I looked at the code and it looked like it does the sane thing you said, ie not following the XEP
-
Zash
Post login, you should be able to iq-get the form to use
-
lovetox
how exactly example 1 gives me the register form
-
lovetox
how do i get a password form?
-
Zash
lovetox: I think you do the same thing as example 1, but after login.
-
Zash
Looks like prosody just returns `<query><username>your username</username><password/></query>` tho, no form
-
lovetox
this is specified
-
lovetox
example 3
-
lovetox
Host Informs Entity of Current Registration
-
Zash
ah, yeah
-
Zash
Why is that not where you put a from if you need a form for whatever reason?
-
lovetox
i dont understand the question
-
Zash
No question, really. The XEP is weird.
-
lovetox
yeah it is, thats what i wanted to express, weird but still workable
-
lovetox
:)
-
Zash
Was there a replacement for this?
-
lovetox
there is a multistage ibr thingy
-
Zash
There's BIND 2, SASL 2, bunch of others something 2
-
Zash
Does password change need to be something specialized or could it be a well-known ad-hoc command?
-
lovetox
could be an adhoc command
-
Zash
Ah, there it is https://xmpp.org/extensions/xep-0389.html
-
Zash
Does any currently popular server do that weird returning an error and a form?
-
lovetox
yes
-
lovetox
Metronome
-
lovetox
i dont know about popular
-
lovetox
:)