Dear Team,
i am making login page with firebase authentication. all working fine but I want @xxxx.com email accept only…other than that it will not accept.
May anyone guide or give code pls.
Dear Team,
i am making login page with firebase authentication. all working fine but I want @xxxx.com email accept only…other than that it will not accept.
May anyone guide or give code pls.
<!-- Container for the demo -->
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__title mdl-color--light-blue-600 mdl-color-text--white">
<h2 class="mdl-card__title-text">Sign In or Sign Up</h2>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>Enter an email and password below and either sign in to an existing account or sign up</p>
<input class="mdl-textfield__input" style="display:inline;width:auto;" type="text" id="email" name="email" placeholder="Email"/>
<p/><p/>
<input class="mdl-textfield__input" style="display:inline;width:auto;" type="password" id="password" name="password" placeholder="Password"/>
<p/>
<button disabled class="mdl-button mdl-js-button mdl-button--raised" id="quickstart-sign-in" name="signin">Sign In</button>
<button class="mdl-button mdl-js-button mdl-button--raised" id="quickstart-sign-up" name="signup">Sign Up</button>
<p/>
<button class="mdl-button mdl-js-button mdl-button--raised" disabled id="quickstart-verify-email" name="verify-email">Send Email Verification</button>
<p/>
<button class="mdl-button mdl-js-button mdl-button--raised" id="quickstart-password-reset" name="verify-email">Send Password Reset Email</button>
<p/>
<!-- Container where we'll display the user details -->
<div class="quickstart-user-details-container" style="display:none">
Sign-in status: <span id="quickstart-sign-in-status">Unknown</span>
<div>Authorization <code>currentUser</code> object value:</div>
<pre><code id="quickstart-account-details">null</code></pre>
</div>
</div>
</div>
</div>
I am using this Java code.
That is a very pretty signin / signup form with verification options written in html/css, there is no “java” code there…? You probably mean javascript ?
Nothing wrong with using an html form to handle a firebase sign in, but there is no script to run anything, and you do not show how it links in to your AI2 blocks / app / firebase (realtime database?) configuration.
Please provide more details and information about your project.
Because your method is encapsulated in html, you will need to inject some javascript to the Sign In / Register button clicks, to carry out a regex check on the makeup of the email address.
may you please elaborate?