]> granicus.if.org Git - ejabberd/commitdiff
Use email field type to avoid jid capitalization on iOS
authorMickael Remond <mremond@process-one.net>
Mon, 9 Sep 2019 10:12:54 +0000 (12:12 +0200)
committerMickael Remond <mremond@process-one.net>
Mon, 9 Sep 2019 10:12:54 +0000 (12:12 +0200)
src/ejabberd_oauth.erl

index d7f440751cf470686dbf657693f7c628fce0919c..d9b16c70ed28fffc5621c390fc81e3cc3a5e63f0 100644 (file)
@@ -414,7 +414,7 @@ process(_Handlers,
              [{<<"action">>, <<"authorization_token">>},
               {<<"method">>, <<"post">>}],
              [?LABEL(<<"username">>, [?CT(?T("User (jid)")), ?C(<<": ">>)]),
-              ?INPUTID(<<"text">>, <<"username">>, <<"">>),
+              ?INPUTID(<<"email">>, <<"username">>, <<"">>),
               ?BR,
               ?LABEL(<<"password">>, [?CT(?T("Password")), ?C(<<": ">>)]),
               ?INPUTID(<<"password">>, <<"password">>, <<"">>),