Answer the question
In order to leave comments, you need to log in
Laravel: socialite-mailru works great, but mail.ru doesn't redirect to redirect_url, why?
I can’t understand: the driver redirects to the connect.mail.ru page, I click "Allow" (or whatever), and then just a blank page, in the address bar: oauth/success.html?state=*state*&code=*code* .
And should redirect to redirect_url. redirect_url is also there, sent to them (mailers)
What am I doing wrong?
upd: Laravel 5.8.22
Answer the question
In order to leave comments, you need to log in
Strings in js are immutable by index. It is better to collect a new line.
This is how it will work.
var output = '565^23'.split('');
for (var i = 0, l = output.length; i < l; i++) {
if (output[i] == '^' && i > 0 && i < l - 1) {
output[i] = 'Math.pow(' + output[i - 1] + ',' + output[i + 1] + ')';
output[i - 1] = '';
if (i >= l - 2 || output[i + 2] !== '^') {
output[i + 1] = '';
}
i++;
}
}
alert(output.join(''));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question