finish login function by douban oauth2.0