This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <div class=""> | |
| <label >Username</label> | |
| <input type="text" v-model="$v.username.$model"> | |
| <small v-if="!$v.username.required">Field is required.</small> | |
| <small v-if="!$v.username.minLength">Username must have at least {{$v.username.$params.minLength.min}} letters</small> | |
| </div> | |
| <div class=""> | |
| <label >Password</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class=""> | |
| <label >Username</label> | |
| <input type="text" v-model="$v.username.$model"> | |
| <small v-if="!$v.username.required">Field is required.</small> | |
| <small v-if="!$v.username.minLength">Username must have at least {{$v.username.$params.minLength.min}} letters</small> | |
| </div> | |
| <div class=""> | |
| <label >Password</label> | |
| <input type="text" v-model="$v.password.$model"> | |
| <small v-if="!$v.password.required">Field is required.</small> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { required, minLength } from 'vuelidate/lib/validators' | |
| export default { | |
| data() { | |
| return { | |
| username: '', | |
| password: '' | |
| } | |
| }, | |
| validations: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.mail.SimpleMailMessage; | |
| import org.springframework.mail.javamail.JavaMailSender; | |
| import org.springframework.stereotype.Controller; | |
| import org.springframework.web.bind.annotation.GetMapping; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| import org.springframework.web.bind.annotation.ResponseBody; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Autowired | |
| public JavaMailSender emailSender; | |
| public void sendSimpleMessage( | |
| String to, String subject, String text, String from) { | |
| SimpleMailMessage message = new SimpleMailMessage(); | |
| message.setTo(to); | |
| message.setSubject(subject); | |
| message.setText(text); | |
| message.setFrom(from); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Controller | |
| @RequestMapping(value="test") | |
| public class TestController{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Mail Spring --> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-mail</artifactId> | |
| <version>2.0.1.RELEASE</version> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring.mail.host=smtp.gmail.com | |
| [email protected] | |
| spring.mail.password=kamudandia | |
| spring.mail.properties.mail.transport.protocol=smtp | |
| spring.mail.properties.mail.smtp.port=587 | |
| spring.mail.properties.mail.smtp.auth=true | |
| spring.mail.properties.mail.smtp.starttls.enable=true | |
| spring.mail.properties.mail.smtp.starttls.required=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| const gebetan = { | |
| "nama": "", | |
| "status": "" | |
| } | |
| function siapaDia() { | |
| gebetan.nama = "Nadia"; | |
| gebetan.status = "pacar orang"; | |
| alert(gebetan.nama + " " + gebetan.status); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| const ab = "iyalah"; | |
| ab = "assa"; | |
| function hayoloh(){ | |
| ab = "assoo"; | |
| alert(ab); | |
| } |
NewerOlder