File tree 4 files changed +35
-4
lines changed
4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1
1
[* ]
2
- end_of_line = crlf
2
+ end_of_line = lf
3
3
insert_final_newline = true
4
4
indent_style = space
5
5
indent_size = 4
Original file line number Diff line number Diff line change 16
16
<label for =" password" >Password</label >
17
17
</div >
18
18
<div class =" input-field col s6" >
19
- <input id =" password_conf " type =" password" placeholder =" Repeat password" required >
20
- <label for =" password_conf " >Repeat Password</label >
19
+ <input id =" passwordConfirmation " type =" password" placeholder =" Repeat password" required >
20
+ <label for =" passwordConfirmation " >Repeat Password</label >
21
21
</div >
22
22
</div >
23
23
<button style =" width :60% ; margin-bottom :10px " class =" waves-effect waves-light btn" type =" submit" >Submit</button >
26
26
<script >
27
27
function register () {
28
28
29
- if (document .getElementById (" password" ).value != document .getElementById (" password_conf " ).value ) {
29
+ if (document .getElementById (" password" ).value != document .getElementById (" passwordConfirmation " ).value ) {
30
30
M .toast ({ html: " Passwords do not match!" , classes: " red" });
31
31
return false ;
32
32
}
Original file line number Diff line number Diff line change
1
+ @{
2
+ ViewData [" Title" ] = " Profile" ;
3
+ }
4
+ <h2 >@ViewData ["Title"]</h2 >
5
+
6
+ <form class =" col s12 compactForm" id =" passwordChangeForm" action =" /Profile/ChangePassword" method =" post" onsubmit =" return changePassword()" >
7
+ <div class =" row" >
8
+ <div class =" input-field col s6" >
9
+ <input placeholder =" Current Password" name =" currentPassword" id =" currentPassword" type =" password" required >
10
+ <label for =" password" >Current Password</label >
11
+ </div >
12
+ <div class =" input-field col s6" >
13
+ <input id =" newPassword" type =" password" placeholder =" New password" required >
14
+ <label for =" newPassword" >New Password</label >
15
+ </div >
16
+ <div class =" input-field col s6" >
17
+ <input id =" newPasswordConfirmation" type =" password" placeholder =" Repeat password" required >
18
+ <label for =" newPasswordConfirmation" >Repeat New Password</label >
19
+ </div >
20
+ </div >
21
+ <button style =" width :60% ; margin-bottom :10px " class =" waves-effect waves-light btn" type =" submit" >Submit</button >
22
+ </form >
23
+
24
+ <script >
25
+ function changePassword () {
26
+ if (document .getElementById (" newPassword" ).value != document .getElementById (" newPasswordConfirmation" ).value ) {
27
+ M .toast ({ html: " Passwords do not match!" , classes: " red" });
28
+ return false ;
29
+ }
30
+ } </script >
Original file line number Diff line number Diff line change 14
14
<PackageReference Include =" Google.Apis.Auth" Version =" 1.44.1" />
15
15
<PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 3.1.2" />
16
16
<PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.10.8" />
17
+ <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 3.1.1" />
17
18
<PackageReference Include =" Newtonsoft.Json" Version =" 12.0.3" />
18
19
<PackageReference Include =" Npgsql.EntityFrameworkCore.PostgreSQL" Version =" 3.1.2" />
19
20
<PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 4.7.0" />
You can’t perform that action at this time.
0 commit comments