1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-27 14:14:39 +08:00

SSH Key Comment: Add Operating System and current Date

It's useful info
This commit is contained in:
Vishesh Handa
2019-12-01 12:19:28 +01:00
parent 7ba8faa57f
commit 103520e5e5

@ -298,7 +298,12 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
}
void _generateSshKey(BuildContext context) {
generateSSHKeys(comment: "GitJournal").then((String publicKey) {
var comment = "GitJournal " +
Platform.operatingSystem +
" " +
DateTime.now().toIso8601String().substring(0, 10); // only the date
generateSSHKeys(comment: comment).then((String publicKey) {
setState(() {
this.publicKey = publicKey;
_copyKeyToClipboard(context);