EllisLab text mark
Advanced Search
33 of 33
33
   
Tank Auth v1.0 (CI authentication library)
Posted: 17 September 2012 03:21 PM   [ # 481 ]   [ Rating: 0 ]
Avatar
Joined: 2011-03-25
220 posts

To make a login form on every page, just either include the login view as well, or copy that form. Tank Auth is dependent on the name of the fields - so just make sure there are no collisions. I alter this once to have login and registration on the same page, and noticed there that they look at the same field names. Had to edit some of the library to fix that.

edit: if you want them to stay on the page, or return to the page they were on after logging in, you would need to do a bit more work. I think if I remember right, that it has them go to index.php after logging in.

 
Posted: 13 December 2012 05:17 PM   [ # 482 ]   [ Rating: 0 ]
Joined: 2012-12-09
6 posts

Hello,

I’ve just started my CI and TA journey… altho i’m having lots of error messages, whenever i logout or activate acount. Here are the errors i get:

Undefined indexsession_id
Undefined index
ip_address
Undefined index
user_agent
Undefined index
last_activity
Undefined index
session_id
Undefined index
last_activity
Filename
libraries/Session.php lines 288-289 

There are few more errors:

Cannot modify header information headers already sent by (output started at /projekt/system/core/Exceptions.php:185)
libraries/Session.php
Line Number
675 
and same thing but inside
Filenamehelpers/url_helper.php
Line Number
542 
 
Posted: 15 December 2012 09:57 AM   [ # 483 ]   [ Rating: 0 ]
Joined: 2012-12-15
1 posts

i got problem in setting the reCapcha it tank auth when i try to change it theme color, the recapcha image now is showing on the top of the form.

this is the code i edit
auth.php

function _create_recaptcha()
 
{
  $this
->load->helper('recaptcha');

  
// Add custom theme so we can get only image
  
$options "[removed]var RecaptchaOptions = {theme: 'red', custom_theme_widget: 'recaptcha_widget'};[removed]\n";

  
// Get reCAPTCHA JS and non-JS HTML
  
$html recaptcha_get_html($this->config->item('recaptcha_public_key''tank_auth'));

  return 
$options.$html;
 

changing the theme from custom to red.

now the recapcha is showing above the form.

could someone can help me about this?

I will appreciate for any help will come, thank you.


BTW sorry for my bad english

 
Posted: 18 December 2013 09:50 AM   [ # 484 ]   [ Rating: 0 ]
Joined: 2013-12-18
1 posts

[redacted]

 
33 of 33
33