Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom login process. #14

Open
jeshuavegas opened this issue Jun 28, 2023 · 2 comments
Open

Custom login process. #14

jeshuavegas opened this issue Jun 28, 2023 · 2 comments

Comments

@jeshuavegas
Copy link

jeshuavegas commented Jun 28, 2023

Hey guys! Mr. Intangble here.

Congrats for this great plugin!

Since I've created my website with Elementor I wonder if there is a way to allow the user login using a custom modal. Because of elementor's ability to create modals, I thought by doing it in this way:

  1. One create the custom modal using elementor with the most commonly used wallets buttons (at least in my case).
  2. Once the button is positioned on the frontend, the user opens the modal in a certain event, in my case a normal button click event.
  3. When the user selects his desired login wallet, the process continues. By auto opening the wallet to sign etc.

Also, there could be cases that logins could be addressed by simply clicking a normal link. So my final question is if there is a link way/method/hook or something we could use in order to define a custom login process without using CardanoPress's native modal/dialog.

Thanks in advance, team!

@jeshuavegas
Copy link
Author

I was reading this

<button x-on:click.prevent="walletConnect(type)" x-bind:disabled="isDisabled(type)">

So, there should be no problem if I use the corresponding alpine's attributes in my button, right? (Cannot test it rn as I'm not home, but I'm reading some code.)

@kermage
Copy link
Member

kermage commented Dec 5, 2024

Yes, you are right.

The main x-data="cardanoPress" alpine component is wrapping the entire body content, there shouldn't be any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants