I
I
Ilya2019-09-24 16:49:03
JavaScript
Ilya, 2019-09-24 16:49:03

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

2 answer(s)
D
Daniel, 2018-05-16
@IvanVvV

Strings in js are immutable by index. It is better to collect a new line.

C
Coder321, 2018-05-16
@Coder321

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 question

Ask a Question

731 491 924 answers to any question