Jump to content

Blesta Login Form


Chair Hosting

Recommended Posts

Hello,

I want to put a login form onto our Multicraft Installation: http://mc.gbitdrive.net (top right) to link to http://gbitdrve.net/client with a login form that automatically logs our clients into their portals. Is that possible? We use WHMCS a lot and we wanted to try Blesta for our 2nd brand.

Thanks, Jacob

Link to comment
Share on other sites

Hello,

I want to put a login form onto our Multicraft Installation: http://mc.gbitdrive.net (top right) to link to http://gbitdrve.net/client with a login form that automatically logs our clients into their portals. Is that possible? We use WHMCS a lot and we wanted to try Blesta for our 2nd brand.

Thanks, Jacob

 

http://www.blesta.com/forums/index.php?/topic/510-login-form-outside-blesta/

Link to comment
Share on other sites

Here is the code I have: 

         <form class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input type="text"  class="form-control" name="username" placeholder="Username" value="" id="login_username">
            </div>
            <div class="form-group">
			  <input type="password" placeholder="Password" class="form-control" name="password" value="" id="login_password">
            <div>
			<input type="submit" name="login" value="Login" class="btn" />
          </form>

Original:

        <?php endif ?>
        <?php
        if (Yii::app()->user->isGuest)
        {
        ?>
         <form class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input type="text" placeholder="Name" class="form-control">
            </div>
            <div class="form-group">
              <input type="password" placeholder="Password" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">Login</button>
          </form>
        <?php
        }
        else
        {

Thanks, Jacob

Link to comment
Share on other sites

Hello,

This login form want it to link to Blesta which is https://gbitdrive.net/client.

Login Form: http://puu.sh/faNEX/1131afd8fd.jpg

Thanks, Jacob

 

Ok thank you so it is the long one :).

 

Your code should be: 

<form class="navbar-form navbar-right" method="post" action="http://gbitdrve.net/client/login/">
     <div class="form-group">
         <input type="text" placeholder="Name" class="form-control" name="username" id="login_username">
     </div>
     <div class="form-group">
        <input type="password" placeholder="Password" class="form-control" name="password" id="login_password">
     </div>
     <input type="submit" name="login" value="Login" class="btn btn-success" hidefocus="true">
</form>

And make sure you have edited the config file as stated in the other thread.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...