Code Duplication    Length = 26-27 lines in 2 locations

application/controllers/User/Auth/Forgot_Password.php 1 location

@@ 36-61 (lines=26) @@
33
			}
34
35
			$this->_render_page('User/Forgot_Password_Success');
36
		} else {
37
			$this->body_data['form_email'] = array(
38
				'name'        => 'email',
39
				'id'          => 'email',
40
				'type'        => 'text',
41
42
				'class'       => 'form-control input-lg',
43
				'tabindex'    => '1',
44
45
				'placeholder' => 'Email Address',
46
				'value'       => $this->form_validation->set_value('email'),
47
48
				'required'    => ''
49
			);
50
			$this->body_data['form_submit'] = array(
51
				'name'     => 'submit',
52
				'type'     => 'submit',
53
54
				'class'    => 'btn btn-primary btn-block btn-lg',
55
				'tagindex' => '2',
56
57
				'value'    => 'Send Recovery Email'
58
			);
59
60
			$this->_render_page('User/Forgot_Password');
61
		}
62
	}
63
64
	// reset password - final step for forgotten password

application/controllers/User/Auth/Signup.php 1 location

@@ 58-84 (lines=27) @@
55
		}
56
57
		//login wasn't valid, failed, or this is a fresh login attempt
58
		if(!$isValid){
59
			//display the email validation form
60
			$this->body_data['form_email'] = array(
61
					'name'        => 'email',
62
					'id'          => 'email',
63
					'type'        => 'email',
64
65
					'class'       => 'form-control input-lg',
66
					'tabindex'    => '1',
67
68
					'placeholder' => 'Email Address',
69
					'value'       => '',
70
71
					'required'    => ''
72
			);
73
			$this->body_data['form_submit'] = array(
74
					'name'     => 'submit',
75
					'type'     => 'submit',
76
77
					'class'    => 'btn btn-primary btn-block btn-lg',
78
					'tagindex' => '2',
79
80
					'value'    => 'Send verification email.'
81
			);
82
83
			$this->_render_page('User/Signup');
84
		}
85
	}
86
87
	//This continued signup occurs after the user clicks the verification link in their email.