# Custom Login code

**URL:** <https://forum.wixstudio.com/t/custom-login-code/37250>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 13, 2018, 12:15pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250 "2018-06-13T12:15:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibmretraitesqc](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ibmretraitesqc](https://forum.wixstudio.com/u/ibmretraitesqc)\
**Post date:** [June 13, 2018, 12:15pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/1 "2018-06-13T12:15:07Z")

</div>

Hi,  
I have created a page for member Login based on videos posted on Youtube by Code Queen.  
Everything works perfectly except that my site is in French.  
When we want to connect, a small window opens for the member to enter his credentials (EMail and password) or to Register as a new member.

How can I have access to the French version of this Login window.

I who it exists since using the Login App we can switch it in French.

THank you for your help

PIerre Lacasse

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [June 13, 2018, 2:22pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/2 "2018-06-13T14:22:14Z")

</div>

Bonjour Pierre : )

Thank you for watching my videos. Here is the Wix Api reference about login options. This example code shows how to prompt a spanish login window. Simply look/change it to french here:

[https://www.wix.com/code/reference/wix-users.html#LoginOptions](https://www.wix.com/code/reference/wix-users.html#LoginOptions)

 ![](https://us1.discourse-cdn.com/wix/original/3X/a/c/ac4ffba13afc5a1de3f10417234d210239611469.jpeg)

---

<div class="post-metadata">

**Author:** ![ibmretraitesqc](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ibmretraitesqc](https://forum.wixstudio.com/u/ibmretraitesqc)\
**Post date:** [June 13, 2018, 3:21pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/3 "2018-06-13T15:21:39Z")

</div>

Thank you!  
It is so easy and nice to follow your instructions.

---

<div class="post-metadata">

**Author:** ![ibmretraitesqc](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ibmretraitesqc](https://forum.wixstudio.com/u/ibmretraitesqc)\
**Post date:** [June 13, 2018, 4:17pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/4 "2018-06-13T16:17:37Z")

</div>

It works perfectly. My Login is now displaying in French.

I don’t know if you have seen my other post in regards with how to check a Database if a user (email) has filled out the profile form or not.

> **[Check if data exist in Db | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/check-if-data-exist-in-db)**
>
> Hi,
> I have a form that I created that populates a Database called ListeMembres.
> 
> I would like to code something that will check if a record exists for the email entered at Login/Signup. Following the result of this check, I want to Hide or Show a...

Thank you

Pierre Lacasse

---

<div class="post-metadata">

**Author:** ![SCW](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/scw/32/9173_2.png) [@SCW](https://forum.wixstudio.com/u/SCW)\
**Post date:** [August 27, 2018, 7:41pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/5 "2018-08-27T19:41:09Z")

</div>

Hi guys.  
I created custom log in pages for 2 different website by following the code here.

> **[Velo Tutorial: Building Your Own Members Area | Help Center | Wix.com](https://support.wix.com/en/article/velo-tutorial-building-your-own-members-area)**
>
> Visit the Velo by Wix website to onboard and continue learning.Note:You can now add a members area to your site without using code. You can also create a page t

Both websites experience the same issue:  
When I log in the button doesn’t switch to logout and the profile button doesn’t show up. After a few times I realized when I refresh the page it shows the correct states of the buttons. Basically the login page doesn’t download correctly at first and has to be refreshed. Has anyone experienced this?

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [February 19, 2019, 11:29pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/6 "2019-02-19T23:29:03Z")

</div>

Simple answer, setup your own custom login lightbox and have that lightbox reload the webpage once the user has logged in.

I do that on my own website for my members login page, once the member logs themselves in, the lightbox closes and the page relaods, which then kicks the code into gear and everything changes.

---

<div class="post-metadata">

**Author:** ![beyondobediencetrain](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/beyondobediencetrain/32/9248_2.png) [@beyondobediencetrain](https://forum.wixstudio.com/u/beyondobediencetrain)\
**Post date:** [March 14, 2019, 2:32am UTC](https://forum.wixstudio.com/t/custom-login-code/37250/7 "2019-03-14T02:32:23Z")

</div>

Having the exact same issue. Will be looking into the suggestion below and CQN’s videos.

---

<div class="post-metadata">

**Author:** ![bmwong98](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bmwong98/32/10555_2.png) [@bmwong98](https://forum.wixstudio.com/u/bmwong98)\
**Post date:** [March 27, 2019, 4:34pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/8 "2019-03-27T16:34:32Z")

</div>

Is there any way to modify code to password protect a page with multiple passwords? Currently, the password protected entry for a page is about as dull as the member login. I was wondering if I could use Wix Code to modify it and also to set multiple acceptable passwords for access to the page? I’m not familiar with JavaScript but know that I don’t really need database if I try to do this. Pls help

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 3, 2019, 12:02pm UTC](https://forum.wixstudio.com/t/custom-login-code/37250/9 "2019-04-03T12:02:41Z")

</div>

@beyondobediencetrain

Exactly like I said above, that page needs to be refreshed after the user logins for the code on the page to actually work. So the easiest option would be to create a custom login lightbox that refreshes the page after the user logins in the login lightbox closes.

---

<div class="post-metadata">

**Author:** ![beyondobediencetrain](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/beyondobediencetrain/32/9248_2.png) [@beyondobediencetrain](https://forum.wixstudio.com/u/beyondobediencetrain)\
**Post date:** [April 4, 2019, 3:18am UTC](https://forum.wixstudio.com/t/custom-login-code/37250/10 "2019-04-04T03:18:06Z")

</div>

@givemeawhisky Hi givemeawhisky, thanks for the response and sorry if I’d missed that previously. I ended up doing exactly that with success. I wonder if I could bother you for any insight on the issue below… I haven’t been able to find anything myself, so even a pointer in the right direction would be immensely valuable!

> **[\[Resolved\] Code executes on second visit to page but not first! | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/code-executes-on-second-visit-to-page-but-not-first)**
>
> Hi all, 
> 
> I have a repeater connected to a dataset. I have code modifying how the elements of the repeater are displayed. The first page of the repeater displays as desired. When you click to page 2 (or 3, or so on), the repeater populates its...
