S
S
Shmel_02011-02-24 13:09:38
API
Shmel_0, 2011-02-24 13:09:38

Mail.ru API: How to change the default "Sign in with Mail.ru" button?

Greetings, habralyudi!

I do authorization on my site through Mail.ru. I can't figure out how to change their standard "Sign in with Mail.ru" button to my own (like it's done on groupon.ru, for example). Tell me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Riateche, 2011-02-24
@Riateche

Haven't worked with this api, but I'll venture a guess that it's done via CSS.

E
Evgeny Leshchenko, 2011-11-17
@xsen

Yes, in general, nothing complicated. Something like this:

    function mailLogin() {
        mailru.loader.require('api', function() {
            mailru.connect.init(MAIL_API_ID,'MAIL_API_PRIVATE');
            mailru.connect.getLoginStatus(function(session){
                window.location.reload();
            });
        });
    }

Authorization can be hung up on any event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question