mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
SSH Key Comment: Add Operating System and current Date
It's useful info
This commit is contained in:
@ -298,7 +298,12 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _generateSshKey(BuildContext context) {
|
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(() {
|
setState(() {
|
||||||
this.publicKey = publicKey;
|
this.publicKey = publicKey;
|
||||||
_copyKeyToClipboard(context);
|
_copyKeyToClipboard(context);
|
||||||
|
Reference in New Issue
Block a user