Member Sign-up / Login page redirect

Im trying to create a redirect from my login to a members page

Ive tried both:
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;

$w . onReady ( function ( {
wixUsers . onLogin (( user )={
[wixLocation](wixLocation.to("www.) [.](wixLocation.to("www.) [to](wixLocation.to("www.) [(](wixLocation.to("www.) ["www.](wixLocation.to("www.) chillidb .com/chillidb-members " );

});

and

$w . onReady ( function () {
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;

wixUsers . onLogin (( user ) => {
wixLocation . to ( "www. chillidb .com/chillidb-members );

});

Ho ho ho STOP !

REWIND & REPLAY, please!

What’s that? -----> import wixUsers from ‘wix-users’ ;

Is there somebody who is using old and depricated APIs??? Do you think this is a good idea?

I will give you some stuff to read…

  1. https://www.wix.com/velo/forum/site-page-design/custom-login-page-functionality

  2. https://www.wix.com/velo/forum/coding-with-velo/persistant-wix-authentication-wix-members-api-issue

Read this first very carefully, before you continue!

cheers for the info … https://community.wix.com/partners/forum/technical-talk/member-sign-up-login-page-redirect leading me astray. I appreciate it.

@natashamonds
I understood! You were looking onto my Login-System xDDDDD.
Well, at current time i am also → REDESIGNING my whole Login-System, because also me has to update my project and implement the new API.

This is exactly what i am doing right now xDDD.

Also pay attention onto the date of post-publication. The new API was rolled out a bout 1-1,5 month ago as i can remember.

So i would say → Forget about -->examples of my old Login-System :rofl:
VERSION - 1.84 ----> is DEPRICATED like the old API

--------> a new one is on it’s way :wink:, you will have to wait for it, if you want to see it working again, perhaps even with new integrated features, who knows xD :sunglasses:

1 Like