File tree 5 files changed +26
-27
lines changed
modules/dx_auth/controllers 5 files changed +26
-27
lines changed Original file line number Diff line number Diff line change @@ -216,24 +216,26 @@ function register()
216
216
{
217
217
$ this ->dx_auth ->captcha ();
218
218
}
219
-
219
+
220
220
// Load registration page
221
- // $this->load->view($this->dx_auth->register_view );
222
- $ this ->mysmarty -> assign ( ' confirm_password_error ' , form_error ( ' confirm_password ' ));
223
- $ this -> mysmarty -> assign ( ' email_error ' , form_error ( ' email ' ));
224
- $ this ->mysmarty -> assign ( ' show_captcha ' , FALSE );
225
-
221
+ $ this ->data [ ' status ' ]-> message = validation_errors ( );
222
+ if ( $ this ->data [ ' status ' ]-> message )
223
+ {
224
+ $ this ->data [ ' status ' ]-> success = FALSE ;
225
+ }
226
226
return $ this ->view ();
227
227
}
228
228
}
229
229
elseif ( ! $ this ->dx_auth ->allow_registration )
230
230
{
231
- $ this ->data ['auth_message ' ] = 'Registration has been disabled. ' ;
231
+ $ this ->data ['status ' ]->success = FALSE ;
232
+ $ this ->data ['status ' ]->message = 'Registration has been disabled. ' ;
232
233
$ this ->load ->view ($ this ->dx_auth ->register_disabled_view , $ data );
233
234
}
234
235
else
235
236
{
236
- $ this ->data ['auth_message ' ] = 'You have to logout first, before registering. ' ;
237
+ $ this ->data ['status ' ]->success = FALSE ;
238
+ $ this ->data ['status ' ]->message = 'You have to logout first, before registering. ' ;
237
239
$ this ->load ->view ($ this ->dx_auth ->logged_in_view , $ data );
238
240
}
239
241
}
Original file line number Diff line number Diff line change 33
33
<div class =" clear" >
34
34
{ $pagination_helper -> create_links ()}
35
35
  ;
36
- <input type =" submit" name =" delete" value =" Delete selected" />
37
- <a href =" { $base_url } admin/message/add" >Ad New</a >
36
+ <input type =" submit" name =" delete" value =" Delete selected" class = " btn btn-danger " />
37
+ <a href =" { $base_url } admin/message/add" class = " btn btn-success " >Ad New</a >
38
38
</div >
39
39
</form >
Original file line number Diff line number Diff line change 25
25
<div class =" clear" >
26
26
{ $pagination_helper -> create_links ()}
27
27
  ;
28
- <input type =" submit" name =" delete" value =" Delete selected" />
28
+ <input type =" submit" name =" delete" value =" Delete selected" class = " btn btn-danger " />
29
29
</div >
30
30
</form >
Original file line number Diff line number Diff line change 1
-
2
1
<fieldset >
3
- <legend accesskey =" D" tabindex =" 1" >Forgotten Password</legend >
4
- <form action =" http://localhost/~rana/codexpertz/forgot_password" method =" post" accept-charset =" utf-8" >
5
- <dl >
6
- <dt >
7
- <label for =" login" >Enter your Username or Email Address</label >
8
- </dt >
9
- <dd >
10
- <input type =" text" name =" login" value =" " id =" login" maxlength =" 80" size =" 30" />
11
- <input type =" submit" name =" reset" value =" Reset Now" />
12
- </dd >
13
- </dl >
2
+ <legend >Forgotten Password</legend >
3
+ <form action =" { $base_url } forgot_password" method =" post" accept-charset =" utf-8" class =" well" >
4
+ <div >
5
+ <label for =" login" class =" control-label" >Enter your Username or Email Address</label >
6
+ <input type =" text" name =" login" value =" " id =" login" maxlength =" 80" size =" 30" />
7
+ </div >
8
+ <div >
9
+ <input type =" submit" name =" reset" value =" Reset Now" class =" btn btn-success" />
10
+ </div >
14
11
</form >
15
12
</fieldset >
Original file line number Diff line number Diff line change 3
3
<form action =" { $action_url } " method =" post" >
4
4
<div class =" controls" >
5
5
<label class =" control-label" for =" username" >Username</label >
6
- <input type =" text" name =" username" value =" " id =" username" size =" 30" />
6
+ <input type =" text" name =" username" value =" " id =" username" size =" 30" class = " required " />
7
7
</div >
8
8
<div class =" controls" >
9
9
<label class =" control-label" for =" password" >Password</label >
10
- <input type =" password" name =" password" value =" " id =" password" size =" 30" />
10
+ <input type =" password" name =" password" value =" " id =" password" size =" 30" class = " required " />
11
11
</div >
12
12
<div class =" controls" >
13
13
<label class =" control-label" for =" confirm_password" >Confirm Password</label >
14
- <input type =" password" name =" confirm_password" value =" " id =" confirm_password" size =" 30" /> { $ confirm_password_error }
14
+ <input type =" password" name =" confirm_password" value =" " id =" confirm_password" size =" 30" class = " required " />
15
15
</div >
16
16
<div class =" controls" >
17
17
<label class =" control-label" for =" email" >Email Address</label >
18
- <input type =" text" name =" email" value =" " id =" email" maxlength =" 80" size =" 30" /> { $ email_error }
18
+ <input type =" text" name =" email" value =" " id =" email" maxlength =" 80" size =" 30" class = " required email " />
19
19
</div >
20
20
<div class =" controls" >
21
21
<input type =" submit" name =" register" value =" Register" class =" btn" />
You can’t perform that action at this time.
0 commit comments