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…
-
https://www.wix.com/velo/forum/site-page-design/custom-login-page-functionality
-
https://www.wix.com/velo/forum/coding-with-velo/persistant-wix-authentication-wix-members-api-issue
Read this first very carefully, before you continue!
@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 
VERSION - 1.84 ----> is DEPRICATED like the old API
--------> a new one is on it’s way
, you will have to wait for it, if you want to see it working again, perhaps even with new integrated features, who knows xD 