PageSourceSearch

https://www.aat.org.uk/csr/chunk-7B6LJ7FM.js

js aat.org.uk collected 2026-10-03 21:40:56 UTC 6,891 bytes, 2 lines download raw bytes

1import{b as Y}from"./chunk-CV4OKJDT.js";import{M as G,Pa as U,R,Xa as W,e as _,ea as V,q as D,sa as B}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{J as L,e as A,h as I,i as N,p as F,s as P,t as M,w as j}from"./chunk-76O7YCWW.js";import"./chunk-YYIIKC2W.js";import{d as T,e as E}from"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import"./chunk-PO2RDVKE.js";import{Ic as k,Pb as f,Rb as p,Wb as m,Xb as e,Yb as t,Zb as d,_a as w,db as c,ec as x,ha as y,jc as C,lc as h,oa as g,pa as b,pb as u,ua as v,ub as S,zc as r}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";function H(i,a){if(i&1&&(e(0,"div"),d(1,"br")(2,"fab-notification",6),t()),i&2){let o=h();c(2),m("isNotificationOpen",o.showNotification)("notification",o.notification)}}function J(i,a){if(i&1){let o=x();e(0,"div")(1,"form",7),C("keydown",function(s){g(o);let l=h();return b(l.keyDownFunction(s))}),e(2,"p"),r(3,"We can help you reset your password using the email address linked to your MyAAT account."),t(),e(4,"p"),r(5," Enter your email below and we'll send you a link to reset your password. If you do not have an account with us, we will not store your email. "),t(),e(6,"p"),r(7," If your email doesn't arrive within a few minutes check your spam folder to make sure it's not in there. The email will contain a password reset link that is valid for 24 hours. "),t(),e(8,"div",8),d(9,"fab-input-text-2",9),t(),d(10,"br"),e(11,"div",10),d(12,"fab-button",11),t(),d(13,"br"),t()()}if(i&2){let o=h();c(),m("formGroup",o.form),c(8),m("content",o.usernameField)("formControl",o.form.controls.username),c(3),m("enabled",o.enabled)("button",o.sendEmailButton)}}function K(i,a){i&1&&(e(0,"div")(1,"p"),r(2," If a user exists for this email address, a forgotten password email has be sent. If it doesn't arrive or you don't remember your email address, please contact us with your AAT ID number. "),t()())}var Q=1,X=2,de=(()=>{let a=class a{constructor(n,s,l,q,O,z){this.authService=n,this.fb=s,this.layoutSetupService=l,this.titleService=q,this.meta=O,this.s3GetterService=z,this.destroyRef=y(v),this.newTitle="MyAAT: reset your password | AAT",this.staged=Q,this.showNotification=!1,this.usernameField={id:"username",label:"<strong>Email</strong>",required:!0,codeType:"Email"},this.sendEmailButton={text:"Send reset email",action:{type:"callback",callback:this.submit.bind(this)},type:"primary",aria:"Send reset email"},this.notification={type:"warning",message:"",glyph:"warning"},this.enabled=!1,this.layoutSetupService.setLayoutConfig({showHeader:!1,showFooter:!1,showLeftNav:!1}),this.meta.updateTag({name:"description",content:"We can help you reset your password using the email address linked to your MyAAT account."}),this.setTitle(this.newTitle),this.form=this.fb.group({username:["",A.required]}),this.form.valueChanges.pipe(_(this.destroyRef)).subscribe(Z=>{this.enabled=this.form.valid,this.sendEmailButton.disabled=!this.form.valid})}setTitle(n){this.titleService.setTitle(n)}ngOnInit(){this.homeLogo=this.s3GetterService.getUrl({objName:G.aatLogo}),this.authService.userResetPassRequired&&(this.notification.message="<strong>You need to reset your password in order to log in to MyAAT</strong>. <br/> <br/> We've recently carried out essential maintenance work to improve our website security. <br/> <br/> As a result we need to ask you to reset your password below in order to re-verify your account. You don't need to change your password. Feel free to use the same one again when you reset it. <br/> <br/>  You'll also need to recreate your multi-factor authentication (MFA) if you had it enabled previously. If this is needed, you'll see instructions after you reset your password. <br/> <br/>Thanks for your cooperation.",this.notification.type="warning",this.notification.glyph="warning",this.showNotification=!0)}submit(){let n=this.form.value;this.showNotification=!1,this.authService.forgotPasswordSendEmail(n.username).subscribe(()=>{this.staged=X},s=>{this.showNotification=!0,this.enabled=!0,this.notification.isOpened=!0,this.notification.type="warning",this.notification.glyph="warning",this.notification.message=`<h4>We couldn't reset your password</h4><br/>You tried to reset your password, but we weren't able to send you a reset link. This can happen if your details don't match our records. We're sorry for the inconvenience. Please contact us so we can help you access your account.<br/><br/>Please quote <strong>error code 12</strong> when you contact us, and if you're emailing please use the email address you use to log into your account.<ul><li>If you're a training provider or assessment centre call us on <a href="tel:020-3735-2443">
1+44 (0)20 3735 2443</a> or email <a href="mailto:[email protected]?subject=Reset%20my%20password%3A%20error%20code%2012">[email protected]</a>.</li><li>If you're anyone else, call <a href="tel:020-3735-2468">+44 (0)20 3735 2468</a> or email <a href="mailto:[email protected]?subject=Reset%20my%20password%3A%20error%20code%2012">[email protected]</a>.`})}keyDownFunction(n){n.keyCode==13&&this.form.valid&&this.submit()}};a.\u0275fac=function(s){return new(s||a)(u(D),u(L),u(V),u(E),u(T),u(R))},a.\u0275cmp=S({type:a,selectors:[["forgot-pass-page"]],decls:20,vars:5,consts:[[1,"container","container-fixed","col-md-5","col-sm-10","col-xs-10"],[1,"logo"],["href",""],["alt","AAT logo",3,"src"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,"green"],[3,"isNotificationOpen","notification"],["action","/user","novalidate","",3,"keydown","formGroup"],[1,"form__fieldgroup"],["formControlName","username",3,"content","formControl"],[1,"button_right","col-md-8","col-sm-10","col-xs-10"],[3,"enabled","button"]],template:function(s,l){s&1&&(e(0,"div",0),d(1,"br")(2,"br"),e(3,"div",1)(4,"a",2),d(5,"img",3),t()(),e(6,"h3"),r(7,"MyAAT: reset your password"),t(),e(8,"div",4),f(9,H,3,2,"div"),t(),f(10,J,14,5,"div"),f(11,K,3,0,"div"),d(12,"hr"),e(13,"h4"),r(14,"Need help?"),t(),e(15,"p"),r(16," Call "),e(17,"mark",5),r(18,"+44 (0)20 3735 2468"),t(),r(19," if you're still having trouble. Never tell or send us your password. "),t()()),s&2&&(c(5),m("src",k(l.homeLogo),w),c(4),p(l.notification.message&&l.notification.message!==""?9:-1),c(),p(l.staged==1?10:-1),c(),p(l.staged==2?11:-1))},dependencies:[Y,W,F,I,N,P,M,j,U,B],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.container{margin:0 auto;font-size:14px}.container hr{background-color:#dce6f0;color:#dce6f0;border:none;height:1px}.container ul>li{margin:1em;list-style-type:disc}.button_right{display:flex;justify-content:flex-end}mark.green{color:#00ab4e;background:none;font-weight:600}.logo{width:95px;margin-bottom:15px;margin-left:-10px}
2`],encapsulation:2});let i=a;return i})();export{de as ForgotPassPageComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.